Viewing 15 posts - 136 through 150 (of 498 total)
I've had this problem. Since then I make sure that my login is ALWAYS set to default to the master database. In my case the database in question became suspect...
March 2, 2004 at 11:51 am
Try
ALTER DATABASE YourDB SET RECOVERY SIMPLE
February 26, 2004 at 9:39 am
In this situation you are better off using NOT EXISTS with a correlated subquery.
February 25, 2004 at 12:58 pm
Hmmm... Upgrade to SQL2K so you can use User Defined Functions?
You can take this function and modify it to suit your needs.
CREATE FUNCTION...
February 25, 2004 at 11:48 am
Also, If you create a backup device on each of the machines then they can go anywhere on the machine and your TSQL becomes much easier...
BACKUP DATABASE MyDb TO MyDevice...
February 24, 2004 at 12:43 pm
I don't have time right now to look up the actual syntax but what you need to do is use the "Parameters" collection and add it to the command object.
February 24, 2004 at 12:39 pm
Give this a try...
SET NOCOUNT ON
IF EXISTS(SELECT * FROM tempdb..sysobjects WHERE id = object_id('tempdb..#Foo'))
DROP TABLE #Foo
CREATE TABLE #Foo
(
FLD1 int
, FLD2 nvarchar(25)
, FLD3 int
, FLD4 ...
February 19, 2004 at 3:15 pm
This seems like a great place to use a function rather than a procedure. You would then be able to eliminate the cursor and use the function call directly in...
February 19, 2004 at 12:31 pm
If you want to do this you can convert your SP to a UDF that returns a table. You will then be able to do something like the following
SELECT *...
February 19, 2004 at 11:53 am
The easiest way I have found to debug a trigger is to create a simple stored procedure that will fire the trigger. Then debug the stored procedure in Query Analyzer...
February 16, 2004 at 3:54 pm
Since you need to do this monthly the best thing to do would be to set up a DTS package and then have a SQL Job run the package once...
February 13, 2004 at 5:24 pm
Koyan,
Try running sp_helptext sp_help_job when you are in query analyzer in the msdb database.
February 12, 2004 at 8:48 pm
I'm surprised no one has helped you out yet. I would probably go the OPENXML method. Have the XML passed into an SP as a parameter of type text or...
February 11, 2004 at 1:35 am
This could also have been done like this...
UPDATE Foo
SET Keywords = Keywords + @NewKeywords
WHERE...
February 11, 2004 at 1:28 am
Fred,
I would double check the DTS package and make sure that the transformations being done are indeed using nvarchar, nchar or ntext. Also make sure that if the package makes...
February 11, 2004 at 1:23 am
Viewing 15 posts - 136 through 150 (of 498 total)