Viewing 15 posts - 631 through 645 (of 790 total)
Here's an example:
declare @sqlstring nvarchar(1000), @table_name varchar(25)
declare @result int
set @table_name = 'pubs.dbo.authors'
set @sqlstring = 'select @c = count(*) from ' + @table_name
exec sp_executesql @sqlstring, N'@c...
July 10, 2003 at 5:12 am
I can't see why they would be displayed in dd/mm/yyyy format, order from earliest to latest. Can you post an example of out of sequence dates?
July 10, 2003 at 5:07 am
Your query looks ok. When you say you're not getting the desired results, what do you mean? Not the required ordering? Not getting the required output formats?
...
July 10, 2003 at 2:22 am
quote:
1) Can I host all the SQL Servers on one powerful machine under windows 2000?
July 9, 2003 at 3:09 pm
You must also note the SQL does not guarantee the order in which results are returned if you have no ORDER BY clause. Even though you may currently be...
July 9, 2003 at 6:44 am
I might be misunderstanding the question. COMPUTE BY is available in SQL 7.0. Can you post the SQL2000 query?
July 9, 2003 at 3:34 am
Following on from Nigel's post, your first SELECT could be coded as:
SELECT CAST(THE_ID AS VARCHAR(8)) + THE_VALUE COLLATE DATABASE_DEFAULT FROM @table_a
UNION
SELECT CAST(THE_ID AS...
July 8, 2003 at 6:59 am
My guess is that replication will put a much higher load on your production server than just a plain backup will. Replication can also have administrative overheads. IMHO...
July 8, 2003 at 6:23 am
No, I was saying that the INSERT INTO command will return true for update() for all columns, regardless of whether NULLS or empty strings are assigned.
The following will return false...
July 7, 2003 at 2:38 pm
Here's the URL from hell . I hope it posts ok and navigates ok for you. It shows a discussion and resolution for similar symptoms....
July 6, 2003 at 3:33 am
Hard to tell without you posting the actual code. Where does SP3 come into play?
Have you tried a series of PRINT, SELECT or RAISERROR...NOWAIT statements to track values of...
July 5, 2003 at 3:51 pm
SQL Server is checking compliance with constraints before your code checks @@error. It will not allow duplicates in the primary key and so throws the error regardless of how...
July 5, 2003 at 3:46 pm
You may have to generate a script larger than intended and then extract the bit you want.
In EM, right click on DB name, All Tasks, Generate SQL Script, General tab...
July 5, 2003 at 3:37 pm
When you UPDATE the row but not SET that particular column to any value
July 5, 2003 at 3:23 pm
Viewing 15 posts - 631 through 645 (of 790 total)