Forum Replies Created

Viewing 15 posts - 12,586 through 12,600 (of 14,953 total)

  • RE: Where clause problem in query

    Remove the "()" from this, "@QTR_EndDate()", in the second one. That should do it.

  • RE: removing column underlining in database mail attachments

    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...

  • RE: Is there a way to fetch all primary and foreign key from a table?

    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...

  • RE: Index rebuilding fails due to a text column

    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 =...

  • RE: Dumb Question

    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,...

  • RE: Dumb Question

    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...

  • RE: Multiple Results Tabs

    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...

  • RE: how to check my database owner?

    In Management Studio, you can right-click the database and go to Properties, and it will tell you who created it and when.

  • RE: No Export BCP Output from SQL + Unable to open BCP host data-file

    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...

  • RE: Renamingtables from a CASE

    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...

  • RE: SQL 2005/Mgmt Studio won't close database on exit

    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...

  • RE: Temporary Table

    daverugz (7/8/2008)


    Guys, along with one of my workmates, we had created a table and made it permanent but we were told to delete this table because someone thought it would...

  • RE: Multiple Results Tabs

    Nope. I don't see an option for that.

  • RE: Mirroring two databases on same instance

    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...

  • RE: sp_executesql

    Have you tried just running the resulting command?

Viewing 15 posts - 12,586 through 12,600 (of 14,953 total)