Forum Replies Created

Viewing 15 posts - 4,666 through 4,680 (of 13,469 total)

  • RE: Read n-table from SQL Database

    the row counts are already materialized in one of the system tables, so if you query that, it will be boatloads faster than querying each table individually:

    Select

    ...

  • RE: Help needed with a query (Cursors+union+pivot?)

    there's no need for a cursor on this, but I think youa re right, you will need to pivot the rows to columns;

    is there a fixed number of answers for...

  • RE: how to add indexes in all tables in a database

    here's the script I mentioned that blindly builds the SQL statements to create indexes on any foreign keys that do not have indexes on them yet;

    any peer review would be...

  • RE: How can I count the number of occurances of a string in an ntext column for each record?

    i like all the examples so rar, but make sure you search for <table without the ending > tag.

    if the table has a class, a css style or even older...

  • RE: how to add indexes in all tables in a database

    Steve Hendricks (9/28/2012)


    In re: "it's the selectivity of the data that is what the SQL engine uses to determine whether to use an index or not."

    For SELECTs that would be...

  • RE: SSMS 2012 Configuration Settings Are All Gone / Reset

    I'm pretty sure the settings are stored in the

    %appdata%\Microsoft\SQL Server Management Studio\11.0 folder in the SQLStudio.bin file.

    If you use any applications that clear out temporary files to recover some...

  • RE: Open EDI file in SQL Server

    ramadesai108 (9/28/2012)


    We do not have the layout file, how do I create one or where do I get one?

    Thanks.

    ouch, there is seriously no "easy" way on this then.

    to the best...

  • RE: how to add indexes in all tables in a database

    blindly adding an index on all the columns that foreign keys are involved with might not help much;

    it's the selectivity of the data that is what the SQL engine uses...

  • RE: Open EDI file in SQL Server

    well, like Ron/bitbucket said; there's many formats to an EDI file; somewhere someone on your side should have put together a document mapping out each element;

    once you have that...

  • RE: Output string to text file?

    why to a text file, and not a table in say, the msdb database, which can contain a suite of commands for you to run during you rmaintenance window?

    why must...

  • RE: Code suddenly stopped working and Im stumped!

    wedgemail (9/28/2012)


    I dont think Im being clear

    I know how to get it to run(add a linked server) but my question is how can

    this code run successfully:

    SELECT 1

    FROM EWH_Staging.dbo.STAGE_REMP_VCC_Distinct vcc

    It...

  • RE: Open EDI file in SQL Server

    formatted a bit for readability;

    similar to some EDI files I handle, it looks like the tilde(~) is the delimiter for message segments;

    the ISA segment is a control header for "who...

  • RE: SQL Server side trigger

    tauseef.jan (9/28/2012)


    Thanks guys, especially Lowell for the code snippet.

    Actually I need, when a user creates/restores a database on the server

    he should be automatically be assigned to db_owner role.

    ...

  • RE: Code suddenly stopped working and Im stumped!

    wedgemail (9/28/2012)


    It does but its on a remote server not local?

    in that case, being on a remote server, you need a linked server so you can get to it.

    and the...

  • RE: SQL Server side trigger

    tauseef.jan (9/27/2012)


    hi friends,

    I need to create a server trigger to automatically map a login to a new database and make it a member of the db_owner database role.

    I was trying...

Viewing 15 posts - 4,666 through 4,680 (of 13,469 total)