Viewing 15 posts - 13,306 through 13,320 (of 14,953 total)
Be sure to look at Dense_Rank as well as Rank. They are slightly different, but very similar. Might want to check it out, just in case.
June 18, 2008 at 8:31 am
I have to admit, I haven't had a lot of luck with the wizard for moving databases. I usually just back them up and then restore them on the...
June 18, 2008 at 8:27 am
Look up the Max() and Sum() aggregate functions. You could use those in sub-queries (or CTEs - those are my preference) and then join to the sub-query/CTE.
June 18, 2008 at 8:21 am
This can be done with a cursor, but I would recommend NOT doing it unless you absolutely have to. Most of the time, shrinking databases is a bad idea.
They...
June 18, 2008 at 8:18 am
Jim, Venky and Mike, run the sample from BOL. The second cursor, the one with the column_details data in it, returns a recordset. You can count the rows...
June 18, 2008 at 8:10 am
My first thought was that an ID column would mess that up, since it gets ignored by an implicit insert statement, but included in "select *", but I tested it...
June 18, 2008 at 8:02 am
That's probably a permissions issue. Make sure the job is running under an account that has the necessary rights. Often, you have to set up a proxy account...
June 18, 2008 at 7:53 am
I believe there's a setting in the scripting options for that.
June 18, 2008 at 7:49 am
I'm having trouble duplicating the results you have, since the sample data from your first post in this thread gives zero results for either query when I tested it.
That means...
June 18, 2008 at 7:46 am
Right-click the database in Management Studio, select Tasks -> Generate Scripts...
It will walk you through a wizard where you pick which objects to script, whether or not to include the...
June 18, 2008 at 7:17 am
I figured it out! On the describe_cursor_columns one, you don't get the number of rows in the original cursor, but you can count the number of rows in the...
June 18, 2008 at 7:09 am
Piotr Rodak (6/16/2008)
The reason I used...
June 17, 2008 at 2:53 pm
majorbloodnock (6/17/2008)
An SSC member starts putting together a Question of the Day, and,...
June 17, 2008 at 2:48 pm
Viewing 15 posts - 13,306 through 13,320 (of 14,953 total)