Viewing 15 posts - 10,891 through 10,905 (of 13,469 total)
Hi vinothd;
basically the script does two things, it creates a trace on the server; server side traces do not have an appreciable impact on the server.
second, it creates a view...
July 6, 2009 at 5:46 am
thanks matthew; I'm glad it looks like it might be useful for you.
it's something i play with when i have spare time; it started out before varchar(max) was available, but...
July 5, 2009 at 9:39 pm
definitely fatfingered...i meant to say EXEC will use all you pass it, whether concatenated (max) variables or whatever, where sp_executesql is the one that will truncate at 4000; thanks, and...
July 5, 2009 at 9:12 pm
sp_executesql, even though its an "internal" stored procedure, is still a proc, and it has a parameter that is an nvarchar(4000);
EXEC is a command, and has no parameters.. just...
July 5, 2009 at 8:48 pm
How do I programmatically get the schema of the dev table with indexes
Any help will be much appreciated. If I posted this in the wrong area please straighten me out!
Thanks
Matthew
I...
July 5, 2009 at 8:29 pm
in addition to what ps said, maybe your friend sent you a backup file which contains more than one backup, and you restored only the first backup in the file,...
July 5, 2009 at 11:35 am
anything in double quotes or square brackets are expected to be a column name, not a static value:
SELECT 0 AS SupplierID, "All Suppliers" AS CompanyName
--should be
SELECT 0 AS SupplierID,...
July 5, 2009 at 8:49 am
I will add the obvious:
As you spend more time here, you'll see a lot of posts that help people get away from "procedural" Row By Agonizing Row Processing to Set...
July 5, 2009 at 6:37 am
service packs are cumulative...so everything that was in SP1 is also in SP2, and everything that was in SP1 and SP2 exists in Service pack 3, so you only need...
July 3, 2009 at 10:43 am
there is a scripts section here on SSC with literally thousands of script contributions.
you can use the search feature in the upper right corner of this page...
i used it to...
July 3, 2009 at 10:19 am
the default value for a column is used only if the column was not referenced in the insert.
if you include the column and it's value in the insert, the default...
July 2, 2009 at 11:42 am
doh i did not know using SSIS was a requirement....sorry...
July 2, 2009 at 9:21 am
here's how i did it:
i created a userdefined function that evaluates the three temperature types, and used a Calculated column fo rthe "flag" field.
Note I changed a few table and...
July 2, 2009 at 9:20 am
Elliott (7/2/2009)
Following the execution of the raiserror sproc you should look at @@ERRORIt would look like this:
IF ( @@ERROR = 0 )
BEGIN
EXEC SPMy_wrapper_insert
END
CEWII
that is the advantage of SET XACT_ABORT...
July 2, 2009 at 8:00 am
i think if you want code to stop on an error, you want to use SET XACT_ABORT ON and use a transaction...in that situation, when an error is raised, execution...
July 2, 2009 at 7:50 am
Viewing 15 posts - 10,891 through 10,905 (of 13,469 total)