Viewing 15 posts - 1,501 through 1,515 (of 1,538 total)
BEGIN
exec YourSP2 @LN, @FN --Process the fetched record by calling second SP
FETCH NEXT FROM Employee_Cursor --Fetch next rowset from the Resultset
END
missed one thing..
modify FETCH...
December 14, 2008 at 11:13 am
Just modified the cursor example from BOL
=========================================
Declare @LN varchar(255) -- variable to store Last Name
Declare @FN varchar(255) -- variable to store First Name
DECLARE Employee_Cursor CURSOR FOR
SELECT LastName, FirstName FROM Northwind.dbo.Employees...
December 14, 2008 at 11:08 am
You can also use cursors or Loop within the first SP and calling the 2nd SP for each rowset from within the cursor/loop.
December 14, 2008 at 10:48 am
Same question reported twice!
http://www.sqlservercentral.com/Forums/Topic619170-169-1.aspx
December 14, 2008 at 10:26 am
If both databases have different users. db A contains users user1, user2, user3 and db B contains users user1, user2, user4 and you want to add user4 to db A...
December 14, 2008 at 9:20 am
Read this article on synchronizing logins http://www.sqlmag.com/Article/ArticleID/25710/Synchronizing_Logins.html
December 14, 2008 at 8:48 am
If comparision is necessary, you can opt for the tools as suggested in earlier replies which would also help you with information on schema changes.
*If* you're concerned only about record...
December 14, 2008 at 8:39 am
Thanks for your replies Adi and Perry.
Though i consider attaching a database the simplest option to put the database back in action, i gave that option as an alternative.
Few google...
December 14, 2008 at 6:51 am
refer to the following URLs on using query plans.
http://msdn.microsoft.com/en-us/library/ms179880(SQL.90).aspx
http://msdn.microsoft.com/en-us/library/ms187032(SQL.90).aspx
download.microsoft.com/download/4/7/a/47a548b9-249e-484c-abd7-29f31282b04d/Forcing_Query_Plans.doc
December 14, 2008 at 6:16 am
Seems he forgot to come back to see the responses!!
His visits count still is 1.
December 14, 2008 at 5:54 am
December 13, 2008 at 10:42 am
Unfortunately msdn and BOL doesnt have much say on this than
The Table Spool physical operator scans the input and places a copy of each row in a hidden spool table...
December 13, 2008 at 10:33 am
well i too presumed the format was mmddyyyy..
he can still twick the query even ih he doesnt know the server's date format by executing either set dateformat 'dmy' OR set...
December 13, 2008 at 9:51 am
the datetime data type stores both date and time.
so the result of
RegisteredDate<= '12/12/2008'
will output all dates less than on equal to 2008-12-12 00:00:00.000
if the record has a RegisteredDate...
December 13, 2008 at 9:14 am
I think the script written by Garadin should help you on the Inner Join that is required her.
SELECT *
From Database1.dbo.Customer C
INNER JOIN Databaes2.dbo.Ship S ON...
December 13, 2008 at 8:11 am
Viewing 15 posts - 1,501 through 1,515 (of 1,538 total)