Click here to Skip to main content
15,897,101 members
Home / Discussions / Database
   

Database

 
Questionsql server mobile edtion connectivity with windows mobile 5.0 application problem Pin
manish.singhal5-Sep-08 2:33
manish.singhal5-Sep-08 2:33 
AnswerRe: sql server mobile edtion connectivity with windows mobile 5.0 application problem Pin
Blue_Boy5-Sep-08 3:22
Blue_Boy5-Sep-08 3:22 
GeneralRe: sql server mobile edtion connectivity with windows mobile 5.0 application problem Pin
manish.singhal6-Sep-08 2:29
manish.singhal6-Sep-08 2:29 
Questiontime out expired Pin
brettokumar4-Sep-08 21:12
professionalbrettokumar4-Sep-08 21:12 
AnswerRe: time out expired Pin
Blue_Boy4-Sep-08 21:38
Blue_Boy4-Sep-08 21:38 
AnswerRe: time out expired Pin
Paddy Boyd4-Sep-08 23:54
Paddy Boyd4-Sep-08 23:54 
AnswerRe: time out expired Pin
Ashfield5-Sep-08 1:16
Ashfield5-Sep-08 1:16 
Questiondymanic sql query Pin
nelsonpaixao4-Sep-08 12:42
nelsonpaixao4-Sep-08 12:42 
Can anyone help me here? i need to use this method D'Oh! | :doh:

declare @season as varchar(4)
set @season = '2004'
declare @sql1 as varchar(max)
declare @sql2 as varchar(max)
declare @sql3 as varchar(max)
select @sql1 = 'create table driver_'+@season+'(id int, f_name varchar(50),l_name varchar(50))'
exec (@sql1)
declare @id int
declare @f_name varchar(50)
declare @l_name varchar(50)
set @id = 123
set @f_name = 'lewis'
set @l_name = 'hamilton'
select @sql2 = 'insert into driver_'+@season+' values(@id,@f_name,@l_name)'
exec (@sql2)
select @sql3 = 'select * from driver_'+@season


Error msg: Msg 137, Level 15, State 2, Line 1
Must declare the scalar variable "@id".

Not declared he says!!!Mad | :mad:

nelsonpaixao@yahoo.com.br

AnswerRe: dymanic sql query Pin
Blue_Boy4-Sep-08 13:25
Blue_Boy4-Sep-08 13:25 
GeneralRe: dymanic sql query Pin
nelsonpaixao4-Sep-08 13:45
nelsonpaixao4-Sep-08 13:45 
GeneralRe: dymanic sql query Pin
Blue_Boy4-Sep-08 13:46
Blue_Boy4-Sep-08 13:46 
QuestionRe: dymanic sql query Pin
nelsonpaixao5-Sep-08 13:26
nelsonpaixao5-Sep-08 13:26 
QuestionLastModifiedDate Pin
geekfromindia4-Sep-08 9:06
geekfromindia4-Sep-08 9:06 
AnswerRe: LastModifiedDate Pin
Wendelius4-Sep-08 9:45
mentorWendelius4-Sep-08 9:45 
GeneralRe: LastModifiedDate Pin
geekfromindia4-Sep-08 9:47
geekfromindia4-Sep-08 9:47 
GeneralRe: LastModifiedDate Pin
Wendelius4-Sep-08 10:12
mentorWendelius4-Sep-08 10:12 
GeneralRe: LastModifiedDate Pin
geekfromindia4-Sep-08 11:36
geekfromindia4-Sep-08 11:36 
GeneralRe: LastModifiedDate Pin
Wendelius4-Sep-08 11:41
mentorWendelius4-Sep-08 11:41 
AnswerRe: LastModifiedDate Pin
nelsonpaixao4-Sep-08 14:16
nelsonpaixao4-Sep-08 14:16 
GeneralRe: LastModifiedDate Pin
geekfromindia5-Sep-08 4:15
geekfromindia5-Sep-08 4:15 
QuestionHelp me with the query strings. Pin
shashi_code4-Sep-08 4:29
shashi_code4-Sep-08 4:29 
AnswerRe: Help me with the query strings. [modified] Pin
Blue_Boy4-Sep-08 5:21
Blue_Boy4-Sep-08 5:21 
GeneralRe: Help me with the query strings. Pin
Meenal Ronghe12-Sep-10 23:34
Meenal Ronghe12-Sep-10 23:34 
GeneralRe: Help me with the query strings. Pin
nelsonpaixao4-Sep-08 13:57
nelsonpaixao4-Sep-08 13:57 
AnswerRe: Help me with the query strings. Pin
ahsan sarfraz8-Sep-08 4:45
ahsan sarfraz8-Sep-08 4:45 

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.