Viewing 15 posts - 8,911 through 8,925 (of 18,926 total)
SELECT
[name] + ', '
FROM sys.columns
WHERE [object_id] = object_id('TableName')
ORDER BY 1
That way you don't have to manually put the commas.
I'd preffer fail solution,...
September 4, 2008 at 3:12 pm
The articles and scripts are posted to the site long before they make it to the newsletter. If you're lucky, you'll see it in the new post or active...
September 4, 2008 at 3:11 pm
I did this manually once.
Search all the code on SQL server and all the code on the client application (search for each table name, also need to be carefull for...
September 4, 2008 at 3:09 pm
I think you need to add indexes to that rebuild list as well!!!
September 4, 2008 at 1:20 pm
Depending on the DR needs, you have to delete the backups eventually. You need to figure out when a backup is no longer needed, then create a job that...
September 4, 2008 at 12:09 pm
You need one extra table called CityCounties
CityID
CountyID
That's easier said than done. Doing that work for the entire US is not a small task. I'm guessing you'll have to...
September 4, 2008 at 12:07 pm
One more thing to keep in mind, if the proc has more than 4000 characters and that the objects used is splitted between 2 rows in syscomments, that still won't...
September 4, 2008 at 9:54 am
Looks like a case where you'll need to manually look at the data and clean it. The first names will not be writtent he same in both tables and...
September 4, 2008 at 6:53 am
Can we see the code you are using?
September 3, 2008 at 1:08 pm
Restore most recent backup under a different DB name. Bilk import the records from that restored table.
Otherwise you need a log explorer like lynn suggested. You might need...
September 3, 2008 at 1:03 pm
Was too slow... but just for the fun of it :
SELECT OBJECT_NAME(C1.id) AS Obj FROM sys.syscomments C1 LEFT OUTER JOIN sys.syscomments c2 on C1.id = C2.id AND C1.Colid =...
September 3, 2008 at 12:58 pm
Just open a cursor, loop and print it out. Copy / paste from there into the script window.
September 3, 2008 at 12:16 pm
The recommendation is to not create objects in production code.
You are in dev mode, which is mode than fine.
September 3, 2008 at 10:42 am
Viewing 15 posts - 8,911 through 8,925 (of 18,926 total)