Viewing 15 posts - 1,111 through 1,125 (of 1,536 total)
sp_msforeachtable is undocumented by Microsoft, but one of the best procs out there....as is it's companion sp_msforeachdb
June 10, 2004 at 5:14 am
The failure to execute of your full backup should not have affected your logshipping in any way. Are you recreating logshipping on a nightly basis?
June 9, 2004 at 1:58 pm
SP_MSFOREACHTABLE "select '?', count(column_name) from ?"
June 9, 2004 at 11:29 am
You can prevent this by using the openquery functionality...
First you tell it to insert, then the openquery, actually provide a query (one that will return a single row is best),...
June 9, 2004 at 11:26 am
You should execute an alter table alter column statement through query analyser rather than go through enterprise manager. When you run an alter table through EM it creates a temporary table...
June 9, 2004 at 11:18 am
Is this a server maintained by yourself? Or do you have a dba for general SQL administration?
If you are tasked with creating the login you would need to be at...
June 9, 2004 at 6:19 am
You're missing the quotes around the first BALLOONS, and need to change the second column name from COLUMN_A, also make sure to set the quoted identifier off..should be
SET QUOTED_IDENTIFIER OFF
update...
June 8, 2004 at 1:49 pm
If you look up CAST AND CONVERT in BOL they have a list of the possible date formats. The date format that you run defines the order of the entries...
June 8, 2004 at 1:18 pm
If your strings are always 6 chars and the same format you could use
declare @date varchar(10), @day char(2), @mnth char(2), @yr char(2)
set @date = '101004'
select @mnth = substring(@date, 1, 2)
select...
June 8, 2004 at 12:31 pm
What you do is search on the wildcard string and replace the literal string...thus...
SET QUOTED_IDENTIFIER OFF
update TABLE set COLUMN_A =REPLACE(COLUMN_A,"BALLOONS","BALLOON")
where COLUMN_A like "%BALLOONS%"
Run it in a transaction and check the results...
June 8, 2004 at 11:42 am
There is no chance for collision between the filenames as they are prefixed with the database name.
You don't have to use a seperate share for each, I use a single...
June 8, 2004 at 11:36 am
exec master..xp_cmdshell 'del c:\whateverthefilenameis'
xp_cmdshell is locked down by default (for good reason), be extremely wary doing this, all kinds of bad things can happen
June 8, 2004 at 10:16 am
As you are not clustering I really don't see the need for a SAN. I'd stick with external arrays, you'd save yourself more than 50%, and then you could persuade...
June 8, 2004 at 9:59 am
Are your SQL server clustered and all production?
June 8, 2004 at 9:46 am
Viewing 15 posts - 1,111 through 1,125 (of 1,536 total)