Viewing 5 posts - 1 through 5 (of 5 total)
I had this same problem recently and the article that Jonathan linked to is where I found the best solution. A collegue had shown me a solution, but after I...
October 31, 2003 at 7:30 pm
Whoops... I messed up the RIGHT function. Use the following code instead.
SELECT 'EXEC(''sp_rename @objname = '''''+LTRIM(u.name)+'.'+LTRIM(s.name)+''''''+', @newname = '''''+LTRIM(u.name)+'.proc_'+LTRIM(RIGHT(s.name,LEN(s.name)-3))+''''''+''')'
FROM sysobjects s, sysusers u
WHERE s.uid = u.uid
AND s.name LIKE 'sp%'
AND xtype...
October 28, 2003 at 8:21 am
Chris,
Paste this into QA (Query Analyzer) and run it against your database. It will return a list of EXEC commands. Copy the EXEC commands into QA and run them. It...
October 28, 2003 at 8:17 am
Have you tried adding a StatusID (Bit or Int) field to the Customer table (0 = Unlocked, 1 = Locked)?
Perhaps you could run a select from the Customer table where...
October 23, 2003 at 8:31 am
Since TRUNCATE resets the identity column (either with a reseed, or setting an autoincrement back to 0) it should only be used if there is currently no data in other...
September 10, 2003 at 7:28 am
Viewing 5 posts - 1 through 5 (of 5 total)