Viewing 15 posts - 16 through 30 (of 86 total)
It certainly took awhile for someone to point out the use of IsNull(). Sloan definitely hit the target.
October 16, 2003 at 6:49 am
Here's a snippet of some code from a stored proc that extracts contact data to a file. I first insert and format my output within a staging table.
CREATE PROCEDURE...
October 15, 2003 at 7:21 am
I haven't had a problem connecting to a named instance on SQL Server 2000 when using an ODBC DNS. We do have an app that uses a BDE connection...
October 9, 2003 at 7:37 am
You may also want to change your NOT IN with NOT EXISTS and have your sub-select be SELECT 1 FROM tablen tn WHERE tn.field1 = field1).
October 9, 2003 at 7:29 am
I never heard that referencing a temp table created outside a stored proc causes the proc to recompile evertime the proc is called. That's a new one for me.
Personally...
October 9, 2003 at 7:24 am
To follow on Chris's comments, my DB was thrown on a separate instance because I need SA permissions, something the DBAs don't like to hand out on a shared box....
October 6, 2003 at 8:08 am
If everyone has their own login use system_user. You also can check out user_name() and suser_name(). I tend to use system_user with SQL Server and suser_name() with Sybase.
...
October 2, 2003 at 6:46 am
I'd agree with Phill. Put your web site into maintenance mode during a slow traffic time and detach and attach.
September 30, 2003 at 6:48 am
What we often do is set up shadow tables, tables that mirror the production tables plus a column for shdw_dt, shdw_action (D,U) and shdw_user (system_user). Then put a trigger...
September 30, 2003 at 6:45 am
Error handling in DTS is better. You could break it up there with e-mails generated and paths followed depending upon success or failure. Then just schedule it as...
September 25, 2003 at 7:04 am
One note. Whenever you do an EXISTS or NOT EXISTS change your subquery to "SELECT 1" instead of referencing cells. May not be a huge gain but results...
September 24, 2003 at 7:11 am
Steve,
Again thanks for the help. This did work in DTS, as I pretty much expected. Found the problem to be related to the connection tool used by the...
September 23, 2003 at 6:49 am
Thanks Steve. Good thoughts. I'll follow-up Monday cause I'm outta here!
September 19, 2003 at 2:56 pm
Sorry, I should have first stated:
If the user has Enterprise Manager I would do as andoi states and simply make a backup and have the user do a restore.
August 22, 2003 at 8:14 am
Sriram,
I'd go along the lines of what mdamera states. Either stop the services on your DB or detach the database (sp_detach_db @dbname = 'database_name').
Then zip and e-mail, post... the...
August 22, 2003 at 8:13 am
Viewing 15 posts - 16 through 30 (of 86 total)