Click here to Skip to main content
15,905,419 members
Home / Discussions / Database
   

Database

 
GeneralRe: Decimals in integer operations Pin
Luc Pattyn28-Jul-10 7:25
sitebuilderLuc Pattyn28-Jul-10 7:25 
GeneralRe: Decimals in integer operations Pin
David Skelly28-Jul-10 22:28
David Skelly28-Jul-10 22:28 
QuestionMSAccess 2003 flexGrid Error loading ActiveX Pin
SarahMcM28-Jul-10 1:50
SarahMcM28-Jul-10 1:50 
AnswerRe: MSAccess 2003 flexGrid Error loading ActiveX Pin
Eddy Vluggen28-Jul-10 5:19
professionalEddy Vluggen28-Jul-10 5:19 
GeneralRe: MSAccess 2003 flexGrid Error loading ActiveX Pin
SarahMcM28-Jul-10 12:02
SarahMcM28-Jul-10 12:02 
AnswerRe: MSAccess 2003 flexGrid Error loading ActiveX Pin
SarahMcM28-Jul-10 16:27
SarahMcM28-Jul-10 16:27 
QuestionMs Access 2000 and Linked Tables to SQL 2005 - Update Record Problem Pin
Simon_Whale28-Jul-10 1:24
Simon_Whale28-Jul-10 1:24 
QuestionSelect * from @TableName Pin
AndieDu27-Jul-10 21:21
AndieDu27-Jul-10 21:21 
Declare @idOrder as nvarchar(10)
set @idOrder = '144'
Declare @sInvoice as nvarchar(50)
set @sInvoice = 'UK_B_IN000051'
Declare @DateRange as nvarchar(100)
set @DateRange = '28Jul2010'
Declare @Country as nvarchar(10)
set @Country = substring(@sInvoice, 1, 2)
Declare @TableName as nvarchar(500)
set @TableName = 'splashdb..Comersus_' + @Country + '_Orders_' + @DateRange

what i want is: select * from @TableName, but sql server returns me error. If someone in here can shed me a light would be really appreciated, or there is an alternative way to achieve the same goal?
AnswerRe: Select * from @TableName Pin
N a v a n e e t h27-Jul-10 21:24
N a v a n e e t h27-Jul-10 21:24 
GeneralRe: Select * from @TableName Pin
AndieDu27-Jul-10 21:33
AndieDu27-Jul-10 21:33 
AnswerRe: Select * from @TableName Pin
Jörgen Andersson27-Jul-10 21:44
professionalJörgen Andersson27-Jul-10 21:44 
GeneralRe: Select * from @TableName Pin
AndieDu27-Jul-10 22:22
AndieDu27-Jul-10 22:22 
GeneralRe: Select * from @TableName Pin
Jörgen Andersson27-Jul-10 22:37
professionalJörgen Andersson27-Jul-10 22:37 
AnswerRe: Select * from @TableName Pin
Mycroft Holmes27-Jul-10 22:33
professionalMycroft Holmes27-Jul-10 22:33 
AnswerRe: Select * from @TableName Pin
AndieDu27-Jul-10 22:59
AndieDu27-Jul-10 22:59 
GeneralRe: Select * from @TableName Pin
small_programmer28-Jul-10 2:24
small_programmer28-Jul-10 2:24 
GeneralRe: Select * from @TableName Pin
Simon_Whale28-Jul-10 3:56
Simon_Whale28-Jul-10 3:56 
AnswerRe: Select * from @TableName Pin
dan!sh 28-Jul-10 4:10
professional dan!sh 28-Jul-10 4:10 
QuestionMDX crossjoin is not responding...it is giving system.outofmemoryexception on below query excution Pin
vamanpnayak27-Jul-10 20:52
vamanpnayak27-Jul-10 20:52 
QuestionTable with Multiple Foreign Keys Pin
ASPnoob27-Jul-10 14:25
ASPnoob27-Jul-10 14:25 
QuestionSelf Referential table Pin
indian14327-Jul-10 7:33
indian14327-Jul-10 7:33 
AnswerRe: Self Referential table Pin
PIEBALDconsult27-Jul-10 8:00
mvePIEBALDconsult27-Jul-10 8:00 
GeneralRe: Self Referential table Pin
indian14327-Jul-10 8:13
indian14327-Jul-10 8:13 
GeneralRe: Self Referential table Pin
PIEBALDconsult27-Jul-10 16:22
mvePIEBALDconsult27-Jul-10 16:22 
GeneralRe: Self Referential table Pin
Luc Pattyn27-Jul-10 16:55
sitebuilderLuc Pattyn27-Jul-10 16:55 

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.