Viewing 15 posts - 13,351 through 13,365 (of 13,451 total)
well, the syntax for sp_addlinkedserver is here or in BOL:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_sp_adda_8gqa.asp
EXEC sp_addlinkedserver @server='S1_instance1', @srvproduct='', ... May 29, 2005 at 8:31 pm
remember a datetime is actually stored as a decimal type number, and the format is arbitrary....its stored as a number like 12345.67, where the 12345 is whole days, and the...
May 29, 2005 at 8:12 pm
go ahead and download the service pack from this page;
http://www.microsoft.com/sql/downloads/2000/sp4.mspx
note in the middle of the article it explicitly says that it is for the MSDE, and that you need...
May 28, 2005 at 11:07 pm
if you are going to be connecting dynamically, i think it is better to use an application to determine and connect to the server, and then execute whatever code you...
May 28, 2005 at 11:02 pm
could it be the file system operations of the FTP and UNZIP operations are not truely completed when it goes to the next step of the TSQL? The OS may...
May 27, 2005 at 11:16 am
select CONVERT ( datetime,getdate(),102 ) might do what you want:
2005-05-27 11:55:35.467
May 27, 2005 at 10:10 am
yet another... appropriate for a developer but not production...this sets autoclose as well as the recovery,so that enterprise manager opens quickly, because the databases are not closed.
declare
@isql varchar(2000),
@dbname varchar(64)
declare c1...
May 27, 2005 at 7:21 am
someone posted a similar issue where orders off of their web site were being lost....a table was scanned by a process looking for orders every five minutes or so, and...
May 27, 2005 at 7:16 am
i think it is comman instead of semi colon:
xxx.xxx.xxx.xxx,1433
so a connection string might look like any of these:
cnObj.ConnectionString= "Provider=SQLOLEDB;Server=65.34.234.179;database=GHBA;uid=tester;pwd=password"
cnObj.ConnectionString= "Provider=SQLOLEDB;Server=65.34.234.179,1433;database=GHBA;uid=tester;pwd=password"
cnObj.ConnectionString= "Provider=SQLOLEDB;Server=65.34.234.179,1207;database=GHBA;uid=tester;pwd=password"
May 26, 2005 at 8:37 am
try this...the syntax is simply sp_kill dbname
--enhanced 02/04/2005 to also list hostname
CREATE PROCEDURE sp_Kill
@DBNAME VARCHAR(30)
--Stored procedure to Delete SQL Process
AS
BEGIN
SET NOCOUNT ON
DECLARE...
May 25, 2005 at 6:15 am
it's all about scheduling and automating a task, vs user intervention. once set up, a scheduled script never needs to be handled again, and the DBA is freed up to...
May 24, 2005 at 2:46 pm
LanMan we were refering to using command line functionality to script a zip file; as far as i know, WINRAR is a gui interface only. WinRAR is a great utility,...
May 24, 2005 at 2:01 pm
Franks right; splitting an entry on vbCrLf is not all that easy; you might need to modify something like the SPLIT function found here on sqlservercentral.com:
http://www.sqlservercentral.com/scripts/contributions/835.asp
the split function works great...
May 24, 2005 at 8:46 am
pkzip25.exe handles longfilenames; you simply wrap them in double quotes;
pkzip25.exe -a "D:\MSSQL\BACKUPS\DatabaseName-Thursday.bak" "\\SomeServer\SharedFolder\DatabaseName-Thursday.zip"
May 23, 2005 at 6:00 am
could it be that when the procedure is called, @NumId is null, and produces unpredicatable results, like deleting everything?just a thought.
May 22, 2005 at 12:01 pm
Viewing 15 posts - 13,351 through 13,365 (of 13,451 total)