Click here to Skip to main content
15,892,839 members
Home / Discussions / Database
   

Database

 
AnswerRe: sqlserver prob Pin
Colin Angus Mackay12-Jun-06 23:38
Colin Angus Mackay12-Jun-06 23:38 
Question50 Tables(Urgent) Pin
kirthikirthi12-Jun-06 20:04
kirthikirthi12-Jun-06 20:04 
AnswerRe: 50 Tables(Urgent) Pin
Michael P Butler12-Jun-06 21:06
Michael P Butler12-Jun-06 21:06 
AnswerRe: 50 Tables(Urgent) Pin
r.stropek12-Jun-06 21:21
r.stropek12-Jun-06 21:21 
GeneralRe: 50 Tables(Urgent) Pin
kirthikirthi12-Jun-06 22:07
kirthikirthi12-Jun-06 22:07 
GeneralRe: 50 Tables(Urgent) Pin
r.stropek12-Jun-06 22:25
r.stropek12-Jun-06 22:25 
GeneralRe: 50 Tables(Urgent) Pin
Mahesh Sapre14-Jun-06 1:43
Mahesh Sapre14-Jun-06 1:43 
QuestionWhy I am getting the error message Server: Msg 245 Pin
kalyan_vb12-Jun-06 10:27
kalyan_vb12-Jun-06 10:27 
I am getting the following error while building the dynamic sql query

Server: Msg 245, Level 16, State 1, Procedure proc_sch_ReceivedMails_Sort, Line 45
Syntax error converting the varchar value 'INSERT INTO @tblTemp(


and the dynamic query is with one parameter +@pProjectPK

DECLARE @tblTemp TABLE
(
TempPK INT IDENTITY(1,1),
ContactTypeCodeFK tinyINT,
ContactTypeDesc VARCHAR(50),
ProjectFK INT
)
set @queryString = 'INSERT INTO @tblTemp
(
ContactTypeCodeFK,
ContactTypeDesc,
PartFK
)
(
SELECT ContactTypeCodeFK,
ContactTypeDesc,
PartFK,
PartMaster.PartDesc
FROM tbl_Correspondence CORES
INNER JOIN tbl_PartCode
ON CORES.PartCodeFK = tbl_PartCode.PartCodePK
WHERE CORES.ProjectFK = "'+@pProjectPK+'")'
Print @querystring
exec @querystring

Kalyan
AnswerRe: Why I am getting the error message Server: Msg 245 Pin
Colin Angus Mackay12-Jun-06 11:44
Colin Angus Mackay12-Jun-06 11:44 
GeneralRe: Why I am getting the error message Server: Msg 245 [modified] Pin
kalyan_vb12-Jun-06 12:26
kalyan_vb12-Jun-06 12:26 
AnswerRe: Why I am getting the error message Server: Msg 245 Pin
Colin Angus Mackay12-Jun-06 12:45
Colin Angus Mackay12-Jun-06 12:45 
AnswerRe: Why I am getting the error message Server: Msg 245 Pin
r.stropek12-Jun-06 21:28
r.stropek12-Jun-06 21:28 
Questionrequired help for sql query Pin
kalyan_vb12-Jun-06 5:25
kalyan_vb12-Jun-06 5:25 
AnswerRe: required help for sql query Pin
Eric Dahlvang12-Jun-06 7:41
Eric Dahlvang12-Jun-06 7:41 
AnswerRe: required help for sql query Pin
r.stropek13-Jun-06 4:09
r.stropek13-Jun-06 4:09 
QuestionDifferent Database Locations Pin
tadhg8812-Jun-06 1:28
tadhg8812-Jun-06 1:28 
AnswerRe: Different Database Locations Pin
Colin Angus Mackay12-Jun-06 1:42
Colin Angus Mackay12-Jun-06 1:42 
QuestionMS-SQL Query result to HTML (how?) Pin
spsharma11-Jun-06 23:15
spsharma11-Jun-06 23:15 
AnswerRe: MS-SQL Query result to HTML (how?) Pin
spsharma12-Jun-06 1:42
spsharma12-Jun-06 1:42 
AnswerRe: MS-SQL Query result to HTML (how?) Pin
vivek-g13-Jun-06 19:37
vivek-g13-Jun-06 19:37 
GeneralRe: MS-SQL Query result to HTML (how?) Pin
spsharma18-Jun-06 23:38
spsharma18-Jun-06 23:38 
Questionsetcount on Pin
vivek-g11-Jun-06 22:31
vivek-g11-Jun-06 22:31 
AnswerRe: setcount on Pin
Frank Kerrigan11-Jun-06 23:21
Frank Kerrigan11-Jun-06 23:21 
AnswerRe: setcount on Pin
sasidar_d12-Jun-06 4:19
sasidar_d12-Jun-06 4:19 
QuestionRetrieve all column if parameter is null Pin
angelagke11-Jun-06 15:58
angelagke11-Jun-06 15:58 

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.