Viewing 15 posts - 331 through 345 (of 429 total)
this surprises me. Are you sure you are checking ERRORLEVEL correctly?
can you post the relevant part of your batch script?
---------------------------------------
elsasoft.org
March 22, 2007 at 3:47 pm
This is an ok script for some purposes perhaps, but it's missing a lot. There are many options in CREATE INDEX that you are not covering, as you can see here: ---------------------------------------
elsasoft.org
March 12, 2007 at 7:52 am
don't be sorry - it was a valid question ![]()
---------------------------------------
elsasoft.org
March 10, 2007 at 8:51 am
this proc creates fine on my system: standard 2005 sp1
---------------------------------------
elsasoft.org
March 10, 2007 at 8:40 am
this free tool will script out all objects in any 2000 or 2005 database, using SMO. source is available so you can modify it as you please - it...
---------------------------------------
elsasoft.org
March 10, 2007 at 8:25 am
was the object you generated a script from in a 2000 or 2005 db? if 2005, then what you are trying to do is not supported.
---------------------------------------
elsasoft.org
March 10, 2007 at 8:23 am
You might want to check out this free tool. It's a cmd line app so it would be easy to schedule it to run nightly. Also the source is available...
---------------------------------------
elsasoft.org
March 10, 2007 at 8:20 am
what sort of perf improvement do you expect from this change? The only difference is the n-types take twice as much space.
The only perf improvement I can see is...
---------------------------------------
elsasoft.org
February 9, 2007 at 10:36 am
Damian, I think you may be wrong there.
This fails on my 2005 sp1 server:
create table #sp_help_job ( job_id uniqueidentifier ,originating_server nvarchar(30) COLLATE Latin1_General_CI_AS ,name sysname COLLATE Latin1_General_CI_AS ...
---------------------------------------
elsasoft.org
January 30, 2007 at 11:10 am
if you are in control of all the sprocs involved, then there are many ways around this problem.
however if you can't change the sproc you are calling with insert-exec,...
---------------------------------------
elsasoft.org
January 30, 2007 at 7:54 am
I am pretty sure this will fail on 2005 also.
insert exec will fail if the proc you are exec'ing is itself also using insert exec.
One kludgy way around it is...
---------------------------------------
elsasoft.org
January 29, 2007 at 4:39 pm
well, ok. as you can tell I am a bit paranoid when it comes to dynamic sql.
If the user is just selecting what columns to select on...
---------------------------------------
elsasoft.org
January 29, 2007 at 1:24 pm
fyi, Peter Larsson has implemented Djikstra in sql here:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=77262
---------------------------------------
elsasoft.org
January 29, 2007 at 1:11 pm
I wouldn't call this safe.
anyone that can control the process that inserts data into @tblIdFields can do damage to your server.
how does data get into this table variable?...
---------------------------------------
elsasoft.org
January 29, 2007 at 11:40 am
in that case have a look at sp_executesql in the article I linked to. also it's documented in BOL.
In any case Erland's article is a must read for anyone cosidering...
---------------------------------------
elsasoft.org
January 26, 2007 at 7:31 pm
Viewing 15 posts - 331 through 345 (of 429 total)