Viewing 15 posts - 31 through 45 (of 175 total)
GilaMonster (7/22/2010)
Try optimising the query inside the EXISTS. If you want a hand with that, please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Thanks Gail. One of...
July 22, 2010 at 5:00 pm
July 21, 2010 at 9:31 am
You could look at the sqlcmd utility. The end user could call a batch file which then calls sqlcmd. This is the simplest 'interface' for a user to execute sql.
There...
July 20, 2010 at 9:41 am
Have you seen this: http://support.microsoft.com/kb/918760
July 15, 2010 at 10:38 am
I use xp_cmdshell, others may use robocopy, etc. This script may help. Understand the security implications of xp_cmdshell if you need to activate this.
Also see http://www.sqlservercentral.com/scripts/Administration/62729/ for a...
July 12, 2010 at 12:56 pm
Backing up to a network drive can be problematic. Better to backup locally and then copy the file to a network location. You can do this in the same job.
July 12, 2010 at 12:41 pm
You can also use BIDS-Business Intelligence Development Studio a custom version of Visual Studio that is shipped with SQL Server 2005.
July 2, 2010 at 10:12 am
This is resolved. I had to reset the service accounts through enterprise manager, not sure what caused this. thanks all.
July 2, 2010 at 10:04 am
Thanks Steve!
Yes agent is dependent on server so I am focused on server.
The security log is clean.
2 notable entries in System
http://support.microsoft.com/kb/938449
We can log on to the domain so...
July 1, 2010 at 9:54 am
This is all untested air code since you didn't provide data in a format that is easy to work with.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
1)
SELECT COALESCE(NULLIF(Format,'')'unknown' )FROM Orders
2) Maybe something like...
SELECT
Field1,
100...
June 28, 2010 at 12:45 pm
Any time you have a manual process that you want to script, you can use the profiler. The profiler will capture the commands you are passing to the server as...
June 11, 2010 at 4:52 pm
Hello and welcome,
Some code would help here but I'll take a wild guess.
Are you concatenating variables? A NULL value combined with another value will often produce NULL depending on...
June 1, 2010 at 4:58 pm
I believe this only only works on local drives, not UNC paths.
EXEC xp_cmdshell 'FORFILES /p F:\Backup /s /m *.bak /d -3 /c "CMD /C del /Q /F @FILE"'
Also see...
May 13, 2010 at 9:56 am
The Foreach loop will look at a folder, optionally subfolders, and files of a certain pattern if you are using wildcarding.
If only one file meets the criteria then yes the...
May 11, 2010 at 1:59 pm
Viewing 15 posts - 31 through 45 (of 175 total)