Viewing 15 posts - 6,016 through 6,030 (of 7,191 total)
Use the HAVING clause so that you only return results with sum = 0. Then join that result set to the original table to get the rows that...
April 18, 2008 at 4:30 am
sp_helptext should give you what you're looking for. But you may have to grant your user higher permissions than it already has - check out the Permissions section of...
April 18, 2008 at 4:26 am
Helin
It's not something I've done before. But one thing you could try is to monitor the sys.dm_exec_requests view and check that cpu_time and/or logical_reads are increasing all the time...
April 18, 2008 at 4:15 am
Just because you can put it all on one drive, it doesn't mean you should. For optimum performance, you should put data and log files on physically separate disks....
April 17, 2008 at 7:38 am
Nita
There's plenty of information on database snapshots in Books Online. Have a read through that, and post again if anything doesn't make sense to you.
John
April 17, 2008 at 7:33 am
Another thing to look out for is that INFORMATION_SCHEMA.COLUMNS also lists columns in views. Therefore, if @TableName happens to be the name of a view, it'll also fail because...
April 16, 2008 at 4:17 am
And beware of the following:
(1) The way you have designed this, you need to give the user permission to create tables.
(2) You don't have a check for whether the column...
April 16, 2008 at 4:06 am
SELECT CAST(MyString AS INTEGER)
John
April 16, 2008 at 12:53 am
Jeff Moden (4/15/2008)
April 15, 2008 at 6:27 am
Look up DBCC FREEPROCCACHE, DBCC DROPCLEANBUFFERS and sp_recompile in Books Online. I recommend that you read all the related ("See Also") topics as well. Please post again if...
April 15, 2008 at 4:55 am
It's not really clear what you're trying to do. If you want to open a SQL script file (with a .sql extension), use SQL Server Management Studio.
John
April 15, 2008 at 4:16 am
AMIT GUPTA (4/14/2008)
use the buit in sp of sql server :sp_foreachtable 'delete from ?'
it will delete the values from all the tables.
Thanks ,
Amit Gupta
(MCP)
Not if you have foreign key constraints....
April 14, 2008 at 6:05 am
ALZDBA (4/14/2008)
or use the "multi brand" version:INFORMATION_SCHEMA.ROUTINES
But be careful: this will only give you the first 4000 characters of the procedure definition.
John
April 14, 2008 at 5:47 am
Nisha
I can, but I won't. Look up sys.sql_modules in Books Online, then try to write the query yourself. If you're stuck on anything particular then post back and...
April 14, 2008 at 4:47 am
Viewing 15 posts - 6,016 through 6,030 (of 7,191 total)