Viewing 15 posts - 6,211 through 6,225 (of 13,460 total)
i tried switching to LOWER as Brandie identified, and i get a function that never finishes executing...in the meantime, i'll post an older version from my supply of 8 differnet...
Lowell
December 15, 2011 at 6:18 am
you'll have to script the jobs, i think; as i remember it,you'll hit a coule of issues:
system databases cannot be restored between versions or service packs. (ie 2005-->2005SP2, or 2005-->2008,2008-->2008R2,...
Lowell
December 14, 2011 at 2:53 pm
TallyTable?
something like this:
SELECT SomeStuff
FROM BusinessTable
WHERE FiscalYear IN(SELECT YearNumber --An integer like 2010
...
Lowell
December 14, 2011 at 1:47 pm
wouldn't forcing the optimizer to use merge joins, instead of allowing it to pick what it thinks is best also potentially affect the performance?
I'll let others expound on why nolock...
Lowell
December 14, 2011 at 10:19 am
I've had a number of what i thought of as "developer only tools" that i generated to make my life easier suddenly get promoted into tools the QA or helpdesk...
Lowell
December 14, 2011 at 7:48 am
well, searching the scripts and articles section here on SSC will get you lots and lots of examples for scripting out users and roles, and object permissions too;
permissions on the...
Lowell
December 14, 2011 at 7:35 am
here's another example using 7zip's command line utility:
my example here shows my exe in a specific path for clarity.
http://downloads.sourceforge.net/sevenzip/7za920.zip
"C:\DataFiles\7zip_CommandLine_7za465\7za.exe" a "C:\DataFiles\myZipFile.zip" "C:\DataFiles\" -y
Lowell
December 14, 2011 at 6:19 am
here's soemthing i put together previously:
this searches an entire database , that is all tables, so you might want to add AND TABLENAME ='YourTable' to limit it's use.
CREATE PROCEDURE...
Lowell
December 14, 2011 at 6:01 am
your temp table could be materialized as a CTE, and used for further processing...that is allowed in a function.
show us your function, and we can probably help.
Lowell
December 13, 2011 at 2:11 pm
newbieuser (12/13/2011)
Lowell
December 13, 2011 at 2:07 pm
only nvarchar/nchar/char/varchar columns with default or check constraints will fail(and this need to be dropped and recreated)...so if you had a check constraint for 'Y' or 'N', or a Default...
Lowell
December 13, 2011 at 1:47 pm
what about Proper Cased column names? not just all lower case;
this will find anything not upepr cased, buy using collation:
SELECT 'EXEC sp_rename '''
...
Lowell
December 13, 2011 at 1:17 pm
isn't the "table" data stored wherever the HEAP or CLUSTERED idnex type is stored?
so you can infer that wherever the i.type_desc in(HEAP,CLUSTERED), that's where the table is.
i added one column...
Lowell
December 13, 2011 at 12:32 pm
each exit is going to need a commit:
IF @condition =1
BEGIN
--do stuff (like you said...either raise an error or commit.
COMMIT TRAN...
Lowell
December 13, 2011 at 10:58 am
Another option is to change one of the keyboard shortcuts to sp_helptext in SSMS; that's free, which is closer to my usual budget.
for example, in the screenshot below, i'm calling...
Lowell
December 13, 2011 at 8:34 am
Viewing 15 posts - 6,211 through 6,225 (of 13,460 total)