Viewing 15 posts - 556 through 570 (of 907 total)
Sorry for the blank post. You could use sp_executesql to execute two commands like so:
declare @cmd nvarchar(4000)
set @cmd = 'select colname' + char(13) + 'exec strdprc'
exec sp_executesql @cmd
Is this...
November 19, 2002 at 1:15 pm
quote:
Hmm, since that was too easy, now let me complicate itI want to generate a view (not hard)...
November 19, 2002 at 1:11 pm
Could you post the code for you SP?
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
November 19, 2002 at 1:01 pm
I guessing you might want to think twice before killing. The command might be repairing the database, and killing it might corrupt the database that is being repaired.
Why do you...
November 19, 2002 at 11:43 am
I'm not sure that copying the txlog from box a to box b get all the committed transactions to box b. Since the transaction have already been comitted on...
November 19, 2002 at 10:27 am
This command will run under the MS SQL Server service account. Is that service account set up to have network access (meaning is it a domain accout), or is...
November 19, 2002 at 10:21 am
I don't mean delete every record, but only the ones you are planning on updating. If the records are a true replacement, then you should be able to delete...
November 19, 2002 at 9:00 am
It is true you can only have one connection open in single user mode, but the service running at the command prompt does not count. I'm normally able to...
November 19, 2002 at 8:42 am
I don't suppose you can do a delete and insert, instead of an update? Are you expanding the records sizewise, with all the set statements? What is your...
November 19, 2002 at 8:06 am
You are not suppose to get your command prompt back, until SQL Server is shutdown. What you are seeing, are the messages that normally would be stored in the...
November 19, 2002 at 7:55 am
If you want to transfer SQL Server logins between SQL Server machines, then read this KB article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q246133
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website...
November 19, 2002 at 7:45 am
Try a recursive call. Here is some code I got off the list from someone. Sorry I can't remember who. This might help.
create table employeelist(id int, parentid...
November 18, 2002 at 7:47 am
Try something like this:
select * from table where convert(char(10),yourdate ,101) = '04/11/2002'
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
November 14, 2002 at 2:17 pm
I think the standby option is required to be set to an undo file file, like this:
STANDBY = undo_file_name
check it out in BOL
Gregory Larsen, DBA
If you looking for SQL...
November 14, 2002 at 2:06 pm
How about inserting the records from table 1 and table 2 into a third table "Table 3". Then you could run a select statement from table 3 to output...
November 13, 2002 at 2:55 pm
Viewing 15 posts - 556 through 570 (of 907 total)