Viewing 15 posts - 12,586 through 12,600 (of 14,953 total)
Remove the "()" from this, "@QTR_EndDate()", in the second one. That should do it.
July 25, 2008 at 12:35 pm
I don't think there's a way to customize that.
Personally, I've found attaching the query results pretty useless. The formatting is horrible, and it ends up being pretty unreadable.
When I...
July 25, 2008 at 12:33 pm
You can have a proc query the XML data and turn it back into relational data, if you like. Use Nodes() and Value() functions to turn it back into...
July 25, 2008 at 12:29 pm
Since it's the clustered index, it actually includes all the data in the column, technically.
You'll have to make that rebuild be "offline". Just change where it says, "ONLINE =...
July 25, 2008 at 12:08 pm
I was wrong.
Just tested it. Transactional replication from one instance to another. Updates, inserts, deletes, all transfer successfully (and immediately).
Truncate gets this error:
Msg 4711, Level 16, State 1,...
July 25, 2008 at 12:04 pm
What I tested was mirroring, but transactional replication would do the same thing.
The Log Reader Agent monitors the transaction log of each database configured for transactional replication and copies the...
July 25, 2008 at 11:49 am
Steve, that still puts all the results in one tab, doesn't separate the result-sets, which is what I think is being looked for here. (Or I could be over-complicating...
July 25, 2008 at 11:37 am
In Management Studio, you can right-click the database and go to Properties, and it will tell you who created it and when.
July 25, 2008 at 11:36 am
I just did this:
create database TestCSV
go
use TestCSV
go
create table dbo.testcsvdm (
ID int identity primary key,
Col1 varchar(100))
go
insert into TestCSV.dbo.testcsvdm (col1)
select number
from common.dbo.numbers -- Table with numbers from 0 to 10,000
go
EXEC master.dbo.XP_CMDSHELL 'bcp...
July 25, 2008 at 11:34 am
Your partial query doesn't make sense to me. It looks like you're building a Case statement inside a dynamic SQL string, and in the Case statement, you've got table...
July 25, 2008 at 11:24 am
The other thing you can do, if you don't want to have to detach the database every time you shut down Management Studio, is set the database options to "Auto...
July 25, 2008 at 10:43 am
daverugz (7/8/2008)
July 25, 2008 at 10:28 am
Yes, you can set up two databases to be mirrored from the same server. I just set this up on my test box, between two instances of SQL Server.
I...
July 25, 2008 at 10:22 am
Viewing 15 posts - 12,586 through 12,600 (of 14,953 total)