Viewing 15 posts - 12,916 through 12,930 (of 13,445 total)
very handy Ged;
I added another selection below that you can use if you have stored procs or functions that have been renamed the same way; Thank you for writing something...
November 3, 2006 at 5:47 am
not fixing an issue like this could cost you your job. The great thing about posting here at SSC is you can build off of other's experience, and avoid the...
November 1, 2006 at 6:36 pm
hadn't seen it before either; tested it and it works on my sqk2k machine:
SELECT name
FROM sysobjects
WHERE { fn LENGTH(name) } > 30
[edited] sure enough, it's in the BOL:
November 1, 2006 at 1:39 pm
there's a famous full featured script that does exactly that;
http://vyaskn.tripod.com/code.htm#inserts
you'd do something like
EXEC sp_generate_inserts 'tbcounty' and get results like this:
or a subset:
EXEC sp_generate_inserts 'tbcounty' ,@from="from...
November 1, 2006 at 11:53 am
Sergei is right, but there is some extended stored procedures you can put on your sql 2000 server in order to use regular expressions in SQL 2000:
read this for all...
November 1, 2006 at 11:35 am
do you mean when you view it in Query analyzer?
QA is limited to displaying 8000 chars or 4000 nchars for a column value; so if you do "SELECT someNTextValue...
October 31, 2006 at 11:16 am
I do the same as Jeff, with a little bit more data: i save the filename, file size, and the CRC of the file in a database;
I do this because...
October 30, 2006 at 11:11 am
Rudy and David are right on target;
You KNOW it is only a matter of time before one of your developers runs an UPDATE or DELETE statement against production as well;...
October 30, 2006 at 10:59 am
id like to hear why they cannot use an identity column. is it because the application is using the borland BDE as the provider to the database?
the correct solution is...
October 28, 2006 at 1:50 pm
multiple file groups are always recommended; I'm pasting a script to help you out with a tiny slice of it: after you've created multiple file groups, the script below can...
October 26, 2006 at 3:53 pm
hard to track down; good question;
if a table is assigned to a filegroup, it stays within that file group.
if the filegroup is comprised of more than one physical file, when...
October 26, 2006 at 2:31 pm
the identity function is smart....if there is a max value in your db with the value 1058, if you try to reseed with a value LESS than the current max...
October 26, 2006 at 1:18 pm
normall, you just do ALTER TABLE UsersImport ADD userIdInt int IDENTITY (99,1) to start at #99.
with a variable, it's a two step process:
declare @C1 int
set @c1=99
ALTER TABLE UsersImport ADD userIdInt...
October 26, 2006 at 12:23 pm
note that the log readers are great, but only work if your recovery model is set to FULL; if it is simple, then there's no log to read, and thus...
October 26, 2006 at 12:21 pm
updated!
Thanks again for all the feedback.
Thanks to David Russell for pointing me towards the fix for some subqueries returing more than one row;that bug is fixed.
other things i did:
added functions...
October 25, 2006 at 7:42 pm
Viewing 15 posts - 12,916 through 12,930 (of 13,445 total)