Click here to Skip to main content
15,887,294 members
Home / Discussions / Database
   

Database

 
QuestionUsing Extended stored proc's within functions / dynamic SQL Pin
ruanr16-Apr-09 1:49
ruanr16-Apr-09 1:49 
QuestionOutput Pin
jonhbt16-Apr-09 1:30
jonhbt16-Apr-09 1:30 
AnswerRe: Output Pin
scottgp16-Apr-09 2:33
professionalscottgp16-Apr-09 2:33 
AnswerRe: Output Pin
Kevin Horgan16-Apr-09 21:01
Kevin Horgan16-Apr-09 21:01 
QuestionMS SQL query syntax for full text search Pin
Vishnu Nath15-Apr-09 21:56
Vishnu Nath15-Apr-09 21:56 
AnswerRe: MS SQL query syntax for full text search Pin
Rajesh Anuhya16-Apr-09 22:02
professionalRajesh Anuhya16-Apr-09 22:02 
AnswerRe: MS SQL query syntax for full text search Pin
Member 77074615-Mar-10 6:39
Member 77074615-Mar-10 6:39 
QuestionDateTime Problem Pin
jonhbt15-Apr-09 21:24
jonhbt15-Apr-09 21:24 
Hi I have this code:

  Declare @v_update_sql varchar(max)<br />
<br />
	Declare @d_Date datetime <br />
	Declare @v_target_table_name varchar(max)<br />
		Set  @v_target_table_name = 'IM_DOC_TRANSFORM'<br />
	<br />
      Set @d_Date = '2009-03-02 12:46:00.000'<br />
     Set @v_update_sql = 'Select * From HRS_STAGING.dbo.'+ @v_target_table_name + 'Where    Last_Documented_Date_And_Time = Convert(datetime,'+@d_Date+')'<br />
    Exec(@v_update_sql)<br />
<br />


The error that is arising is that of cannot convert to datetime from string.the variable @d_Date is a valid date but still it cannot convert it. That statement works went not in a string variable but in this format it doesn't. Can someone help me please? Thanks
AnswerRe: DateTime Problem Pin
Kevin Horgan15-Apr-09 21:43
Kevin Horgan15-Apr-09 21:43 
GeneralRe: DateTime Problem Pin
jonhbt15-Apr-09 22:05
jonhbt15-Apr-09 22:05 
GeneralRe: DateTime Problem Pin
Kevin Horgan15-Apr-09 22:19
Kevin Horgan15-Apr-09 22:19 
GeneralRe: DateTime Problem Pin
jonhbt15-Apr-09 22:43
jonhbt15-Apr-09 22:43 
AnswerRe: DateTime Problem Pin
Kevin Horgan15-Apr-09 22:55
Kevin Horgan15-Apr-09 22:55 
GeneralRe: DateTime Problem Pin
jonhbt15-Apr-09 23:11
jonhbt15-Apr-09 23:11 
QuestionWhat is the meaning of Output Variable in sp_xml_preparedocument Pin
kiran.parab15-Apr-09 19:20
kiran.parab15-Apr-09 19:20 
QuestionLogin failed. The login is from an untrusted domain and cannot be used with Windows authentication. Pin
bLeZy15-Apr-09 17:07
bLeZy15-Apr-09 17:07 
AnswerRe: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. Pin
Ashfield15-Apr-09 20:59
Ashfield15-Apr-09 20:59 
GeneralRe: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. Pin
ap_wooka27-May-10 10:11
ap_wooka27-May-10 10:11 
GeneralRe: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. Pin
Ashfield27-May-10 23:09
Ashfield27-May-10 23:09 
GeneralRe: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. Pin
poparosa27-Oct-10 8:35
poparosa27-Oct-10 8:35 
AnswerRe: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. Pin
liviucatrina13-Apr-10 4:24
liviucatrina13-Apr-10 4:24 
GeneralSQL IF statement Pin
DBLearner15-Apr-09 8:31
DBLearner15-Apr-09 8:31 
GeneralRe: SQL IF statement Pin
Luc 64801115-Apr-09 8:47
Luc 64801115-Apr-09 8:47 
GeneralRe: SQL IF statement Pin
DBLearner15-Apr-09 9:00
DBLearner15-Apr-09 9:00 
GeneralRe: SQL IF statement Pin
Luc 64801115-Apr-09 9:02
Luc 64801115-Apr-09 9:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.