Viewing 15 posts - 1 through 15 (of 98 total)
Happened to run across this and since my old web site is no longer active, here is the link to the post that would have been on my web site...
January 7, 2015 at 9:19 am
Another alternative for people who like to type as little as possible:
Try ctrl+shift+Q, which brings up the query designer (in SSMS) using the database of the current connection. Then...
May 1, 2008 at 1:16 pm
Another alternative follows. Note that the error message contains details such as
the parameter values at the time of error and the name of the stored procedure
(or you could...
April 29, 2008 at 12:19 pm
Generally speaking that is absolutely correct that a "select *" will be expensive. However, in this case the "Exists" keyword negates that effect, because apparently it tells the query...
November 28, 2007 at 3:53 pm
Marek,
Why use "Row Count component"? Do you mean @@rowcount, or are you suggesting something else? Note that the request was to determine whether a table had rows at...
November 27, 2007 at 12:53 pm
An alternative way to check if a table has records, if you don't need to know the rowcount:
[font="Courier New"]IF EXISTS (SELECT * FROM mytable)
SET @loadtable=0 ...[/font]
In my quick tests, it...
November 26, 2007 at 5:44 pm
Deana,
Your large Monday tran log backup may be due to a maintenance plan optimizations job (rebuilding all the indexes) - by default it will run at 1am Sunday if someone...
October 1, 2007 at 6:09 pm
Lots of good info here, but might I suggest that you really should care about space. Good database design means using the right datatype for the data that will be used. ...
August 10, 2007 at 1:37 pm
Phil,
In this case, you may not even need to use global variables, but I've included in this sample some code that would allow you to do so depending on your needs.
To...
August 7, 2007 at 1:16 pm
EXEC master..sp_addsrvrolemember @loginame = N'Domain\Username', @rolename = N'sysadmin'
Note that...
June 26, 2007 at 2:57 pm
Yes, you can easily pass a global variable value into the Execute Process Task - simply use a Dynamic Properties Task. This can be used to set a wide variety...
August 8, 2006 at 2:32 pm
Can you do a point in time restore with the imaging software? You can w/SQL backups. How long would it take to get a DB restored from an image, and...
July 20, 2006 at 1:26 pm
Kevin,
Actually, I think your crash when clicking "Define Columns" is a different issue: http://support.microsoft.com/kb/814113/en-us .
A few years ago, I had a problem that sounds like yours: http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=19&messageid=14383#bm71433
Since this issue is related to...
April 5, 2006 at 11:41 am
Perhaps someone accidentally un-registered it? It is registered by default when the client tools are loaded.
Anyway, you should be able to find "custtask.dll" in
"C:\Program Files\Microsoft SQL Server\80\Tools\Binn"
If the file is there,...
July 29, 2005 at 6:06 pm
I'm not sure what you mean by "running the script" and "hosted". For my example, I had the code in an activex task within a DTS package. If I simply run...
July 8, 2005 at 2:49 pm
Viewing 15 posts - 1 through 15 (of 98 total)