Viewing 15 posts - 47,971 through 47,985 (of 49,571 total)
Too easy?
Ah well, we are here to help people out after all.
December 22, 2007 at 2:15 am
You can select them and return then as a recordset.
December 21, 2007 at 2:59 pm
Edit. I need to read better.
A better way to debug than mess with dynamic SQL, which in this case is going to cause errors that didn't exist before, is to...
December 21, 2007 at 2:32 pm
Take this lot out from just before the exec. The GO breaks the batch and afterwards, the SQL1... variables are not defined.
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
December 21, 2007 at 2:22 pm
Scott H. Chang (12/21/2007)
Hi all,IF EXISTS (SELECT PivotedLabTests FROM sys.tables
WHERE PivotedLabTests = 'pvt')
DROP TABLE pvt
Firstly, this....
December 21, 2007 at 2:20 pm
Please don't create multiple threads on the same problem. It just fragments replies and annoys the regulars.
Since this is a continuation of your old thread, please continue it there
December 21, 2007 at 1:32 pm
Since you're using SQL 2005, you can use the Row_number function. makes this kinda thing very easy.
Since I also suspect homework 😉 at least until told otherwise, consider this
ROW_NUMBER() OVER...
December 21, 2007 at 1:26 pm
Autoclose means that when the last connection is dropped from a DB, the DB is shut down cleanly, just as if the server had shut down. While the DB is...
December 21, 2007 at 1:21 pm
Hint
DECLARE @Var1 INT
SET @Var1 = NULL
SELECT
CASE WHEN @Var1 = NULL THEN 'Var1 = Null' ELSE 'Var1 <> NULL' END AS EqualityTest,
CASE WHEN @Var1 <> NULL THEN 'Var1...
December 21, 2007 at 1:15 pm
colin Leversuch-Roberts (12/21/2007)
December 21, 2007 at 1:00 pm
Oh you certainly did. Almost to the coffee over keyboard point. Especially the bat.
December 21, 2007 at 12:56 pm
misandrew (12/21/2007)
only valide for Master database
for the other USER database
it produce error !!
What error?
December 21, 2007 at 12:51 pm
Shut down the server (if its running) and move the tempdb files back to where they were (and any other files that you moved) then restart SQL. It should come...
December 21, 2007 at 12:48 pm
Do you have any indexes other than the one you posted? Especially, do you have a clustered index?
If you don't have a cluster, I would suggest a clustered index on...
December 21, 2007 at 12:42 pm
The DB restore would have been the cause of the cache flush that you saw in the error log. In this case it's nothing to be concerned with. It's just...
December 21, 2007 at 12:33 pm
Viewing 15 posts - 47,971 through 47,985 (of 49,571 total)