Viewing 15 posts - 1,951 through 1,965 (of 5,590 total)
itsjustme (1/11/2011)
here is the code that I am trying to write..
declare @db_name nvarchar(255), @db_location_name nvarchar(255), @db_log_name nvarchar(255)
, @db_name_time nvarchar(255);
set @db_name = 'test';
set @db_log_name ='test_log';
set @db_location_name='c:\temp\test.bak';
set @db_name_time = 'test01' ;
Restore...
January 11, 2011 at 9:31 am
keymoo (1/11/2011)
I will be calling the stored procedure...
January 11, 2011 at 9:13 am
itsjustme (1/11/2011)
Thank you very much for quick reply. when I try to put the quotes then I get the error as
Incorrect syntax near +
any ideas of what...
January 11, 2011 at 9:01 am
I see two issues:
1. You can re-write this procedure to not need any temp tables or cursors - just a single, set-based query.
2. You are referencing sysobjects, sysindexes, etc. You...
January 11, 2011 at 8:57 am
Jeff Moden (1/10/2011)
WayneS (1/10/2011)
Craig Farrell (1/10/2011)
GSquared (1/10/2011)
Since you're using SQL 2008, can you switch from delimited lists of parameter values to a table variable parameter? Those are more efficient.
I...
January 10, 2011 at 7:22 pm
Craig Farrell (1/10/2011)
GSquared (1/10/2011)
Since you're using SQL 2008, can you switch from delimited lists of parameter values to a table variable parameter? Those are more efficient.
I haven't had the...
January 10, 2011 at 6:53 pm
What parts are working?
In the restoring section, the variables being populated are not in quotes. (Probably a typo in the post here, since you would also get a compile error.)
You...
January 10, 2011 at 6:49 pm
Lutz,
Thanks for covering this!
With both HTML and XML looking somewhat similar, it's easy to see why one would get confused over it.
January 10, 2011 at 6:19 pm
How does this work out for you?
SELECT @var1 = max(CASE WHEN id = 1 THEN varvalue ELSE NULL END),
@var2 = max(CASE WHEN id...
January 9, 2011 at 9:29 pm
Sichy (1/9/2011)
I'm really curious about this line of code:
SELECT TOP 158533281 --158,533,281
What does that number represent? It's a really odd number to use - why not 200 million?
January 9, 2011 at 9:24 pm
cengland0 (1/7/2011)
January 7, 2011 at 10:24 am
cengland0 (1/7/2011)
January 7, 2011 at 9:25 am
GSquared (1/7/2011)
January 7, 2011 at 8:14 am
GilaMonster (1/7/2011)
Do you have the execution plan on? Normally it would be triggers.
Interesting... I didn't know this. I was immediately thinking triggers myself.
January 7, 2011 at 4:38 am
toddasd (1/6/2011)
January 7, 2011 at 4:30 am
Viewing 15 posts - 1,951 through 1,965 (of 5,590 total)