Viewing 15 posts - 5,356 through 5,370 (of 14,953 total)
Add the Alter Database commands to your string in the variable, and then execute the string.
declare @Cmd varchar(8000);
select @Cmd = 'alter database MyDB add file ...' -- put the rest...
January 12, 2011 at 12:36 pm
Do you want different columns, or do you want a comma-delimited list?
You can do a dynamic pivot through dynamic SQL of various sorts. Simple-Talk (www.simple-talk.com) has a good article...
January 12, 2011 at 12:26 pm
Redundancy is the only answer to this kind of thing that makes any kind of sense to me.
Avoiding "the cloud" because it's "less secure" assumes that your local servers/computers are...
January 12, 2011 at 12:24 pm
I'm assuming you've looked at what Windows says is using the memory, in Task Manager. Right?
What besides the OS and SQL Server is running on that server? What's...
January 12, 2011 at 12:11 pm
I wouldn't mess with the log shipping, not if it's for DR purposes.
Back up, compress, ship over, and so on.
January 12, 2011 at 11:36 am
I could be wrong, but I don't think it'll let you set up the same computer as all three. Mainly, why have a witness on the same as the...
January 12, 2011 at 11:29 am
Is it being blocked by other processes in the table?
January 12, 2011 at 11:27 am
Are you trying to dynamically move the files?
Why assume the files are in a default location, when you can query sys.database_files to get the exact data?
January 12, 2011 at 11:25 am
I'd start with just plain searching online for tools and articles. I plugged "migrate oracle to sql server" into Bing (use whatever search engine you like). The second...
January 12, 2011 at 11:22 am
It is definitely possible. Sometimes it's even the best column for that.
It'll depend on how you're using it. What does the column mean in the data?
January 12, 2011 at 11:20 am
It sounds like you're working on preventing SQL injection in dynamic SQL. Is that correct?
If so, have you looked into using sp_executesql for parameterized queries instead of executing a...
January 12, 2011 at 11:18 am
On the cursor definition, you can change that from a Left Outer join to an Inner Join. The Where clause forces that anyway.
Glad I could help out.
January 12, 2011 at 11:14 am
Grant Fritchey (1/12/2011)
WayneS (1/12/2011)
Grant Fritchey (1/12/2011)
January 12, 2011 at 11:12 am
Take a look at xp_readerrorlog and see if that will do what you need.
January 12, 2011 at 6:09 am
michael sorens (1/10/2011)
January 11, 2011 at 11:00 am
Viewing 15 posts - 5,356 through 5,370 (of 14,953 total)