Viewing 15 posts - 7,426 through 7,440 (of 7,636 total)
Depends.
You'll have to give us a lot more information than that.
March 20, 2008 at 1:29 pm
Jez: does that example work on SQL2000? I thought that the ::fn_get_sql function only worked on SQL2005.
March 20, 2008 at 11:38 am
Either 1) your ADO.NET connection timeout is too low, or 2) your program cannot find (or access) the SQL server that you are trying to connect to.
The answer to (1)...
March 20, 2008 at 11:20 am
hitesh.p (3/19/2008)
----------
There are around 30 HMIs accross 3 production plants that will fire update comfirmation on PartsManufacturing Table which is centrally located in SQL Server. It is likely that multiple...
March 20, 2008 at 11:08 am
Gail, my understanding is that, in the abscence of statistics, the optimizer will, having nothing else to go on, order the predicates as they were ordered in the query statement.
March 20, 2008 at 10:38 am
You cannot parametize object names in SQL.
Try this:
Declare @TableName varchar(255)
Select @TableName = 'AdventureWorks.HumanResources.Employee '
Declare @sql varchar(max)
Select @sql = N'SELECT * FROM ' + @TableName + ' WHERE EmployeeID = 1'
EXECUTE...
March 19, 2008 at 7:31 pm
Right. Clearly I was typing SUBSTRING and thinking LEFT.
March 19, 2008 at 7:16 pm
Corrected:
rbarryyoung (3/19/2008)
Off the top of my head:
Master_Address = Substring(Master_Address, 1, Len(Master_Address)-2)
March 19, 2008 at 4:53 pm
Rats! Cory has it right, my answer is wrong...
March 19, 2008 at 4:52 pm
Column order in predicates is only relevant if SQL Server has no statistics available on the referenced columns.
March 19, 2008 at 4:39 pm
Yasir Masood (3/19/2008)
So I should use char(20) in the Alter statement?
No, it won't make any difference.
The point of the prior posters was that SQL Server cannot just change the column...
March 19, 2008 at 3:53 pm
Viewing 15 posts - 7,426 through 7,440 (of 7,636 total)