Click here to Skip to main content
16,004,974 members
Home / Discussions / Database
   

Database

 
QuestionSQL Server does not allow remote connections error Pin
tanpanjang16-Mar-06 10:37
tanpanjang16-Mar-06 10:37 
AnswerRe: SQL Server does not allow remote connections error Pin
Colin Angus Mackay16-Mar-06 12:07
Colin Angus Mackay16-Mar-06 12:07 
GeneralRe: SQL Server does not allow remote connections error Pin
tanpanjang16-Mar-06 17:31
tanpanjang16-Mar-06 17:31 
GeneralRe: SQL Server does not allow remote connections error Pin
Colin Angus Mackay16-Mar-06 20:26
Colin Angus Mackay16-Mar-06 20:26 
GeneralRe: SQL Server does not allow remote connections error Pin
tanpanjang16-Mar-06 21:17
tanpanjang16-Mar-06 21:17 
GeneralRe: SQL Server does not allow remote connections error Pin
tanpanjang16-Mar-06 17:37
tanpanjang16-Mar-06 17:37 
QuestionCrystal Reports Query Engine Error Pin
beatle1116-Mar-06 10:18
beatle1116-Mar-06 10:18 
QuestionFetching data giving dynamic table at runtime Pin
sandeep kumar pundhir16-Mar-06 3:30
sandeep kumar pundhir16-Mar-06 3:30 
hi,

i want to fetch a data from the table which i have to give dynamically in my stored procedure

The thing I m stucked on is

---declaring a variable to hold table name
declare @TableName nvarchar(50)

--here i m setting the tablename for example my actual situation it will come from . result of queries prior to this
@Tablename='Annotationproperty'

--Select particular column from particular table for this row
select propertyID from @TableName where UserID=1

It gives an error that Must declare the table variable "@TableName"

So how I can give a dynamic table name in my sql query or is there some alternate way for this.

waiting ur replies

thanx
sandeep
AnswerRe: Fetching data giving dynamic table at runtime Pin
Colin Angus Mackay16-Mar-06 12:38
Colin Angus Mackay16-Mar-06 12:38 
GeneralAnother Related problem Pin
sandeep kumar pundhir16-Mar-06 20:13
sandeep kumar pundhir16-Mar-06 20:13 
GeneralRe: Another Related problem Pin
Colin Angus Mackay16-Mar-06 20:30
Colin Angus Mackay16-Mar-06 20:30 
QuestionHow to use Filter forDataset Pin
Muhammad Jawad15-Mar-06 23:28
Muhammad Jawad15-Mar-06 23:28 
QuestionRetrieving data... Pin
merlie15-Mar-06 20:06
merlie15-Mar-06 20:06 
AnswerRe: Retrieving data... Pin
albCode15-Mar-06 21:34
albCode15-Mar-06 21:34 
QuestionHow to set Value in a Auto Number Filed in SQL DB Table? Pin
pubududilena15-Mar-06 16:55
pubududilena15-Mar-06 16:55 
AnswerRe: How to set Value in a Auto Number Filed in SQL DB Table? Pin
HimaBindu Vejella15-Mar-06 18:58
HimaBindu Vejella15-Mar-06 18:58 
Questionstored procedure ...help!!:) Pin
coolshad15-Mar-06 16:07
coolshad15-Mar-06 16:07 
AnswerRe: stored procedure ...help!!:) Pin
dansoft16-Mar-06 3:32
dansoft16-Mar-06 3:32 
AnswerRe: stored procedure ...help!!:) Pin
nguyenvhn16-Mar-06 16:51
nguyenvhn16-Mar-06 16:51 
AnswerRe: stored procedure ...help!!:) Pin
Erik.W16-Mar-06 23:31
Erik.W16-Mar-06 23:31 
QuestionAdd Connection Server Name drop-down - why nothing in list? Pin
LuluSailor15-Mar-06 7:30
LuluSailor15-Mar-06 7:30 
QuestionADO.NET started with what version of ADO? Pin
LuluSailor15-Mar-06 6:38
LuluSailor15-Mar-06 6:38 
AnswerRe: ADO.NET started with what version of ADO? Pin
Colin Angus Mackay15-Mar-06 10:41
Colin Angus Mackay15-Mar-06 10:41 
GeneralRe: ADO.NET started with what version of ADO? Pin
LuluSailor17-Mar-06 6:27
LuluSailor17-Mar-06 6:27 
QuestionMuiltiple SQL Join tutorials Pin
Chandana Subasinghe15-Mar-06 2:17
Chandana Subasinghe15-Mar-06 2:17 

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.