Forum Replies Created

Viewing 15 posts - 46 through 60 (of 388 total)

  • RE: Hitting nVarchar(max) limitation when running exec sp_executesql

    Still, it looks like single string assignment cannot be longer than 8000 characters. To work around this, split your long sql string into parts and use + operator to put...

    ...and your only reply is slàinte mhath

  • RE: How to resolve this deadlock caused by update/delete

    Can you give us more information? Can you reproduce the problem? If so, please enable trace flag 1222 and see what is the output. What do you read any data...

    ...and your only reply is slàinte mhath

  • RE: Indexes designed for reading from tables intended for writing

    Hi,

    I am not sure if you have solved your problem yet, but here's what I think about it.

    Look at the debugging on a production database from business point of...

    ...and your only reply is slàinte mhath

  • RE: error in default date

    It may be worth to mention also that varchar(2) is a bad design choice. because in fact up to 4 bytes are required to store the value.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: trigger is throwing error when db is offline?

    Well, if the database is offline you can't connect to it, so why would you want to write anything to it?

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Query running slow when concurrent users increases

    This is an old post, I wonder how this was (if at all) resolved.

    If not, can you post the MEMPOFF table DDL? I just wonder, if creating NC covering index...

    ...and your only reply is slàinte mhath

  • RE: Bulk insert performance.

    You are right, dropping indexes may speed up the bulk insert operation. This depends on the number of rows in the table the rows are inserted to and the number...

    ...and your only reply is slàinte mhath

  • RE: Urgent: Adding Primary Key to the 70 Million table

    If there was clustered primary key on email, it could have been lagging due to page splits during inserts. I think in this case a nonclustered unique constraint (to ensure...

    ...and your only reply is slàinte mhath

  • RE: Attach/Dettach - automate

    Oh yes, this script only reflects requirements specified by OP. You can definitely taylor it to suit your needs.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: find if user belongs to a role

    I have these two little queries in my templates:

    --select all roles for given user

    select user_name(role_principal_id), user_name(member_principal_id) from sys.database_role_members

    where user_name(member_principal_id) = 'user name'

    --select all role members for given role

    select user_name(role_principal_id), user_name(member_principal_id)...

    ...and your only reply is slàinte mhath

  • RE: Physical file name

    Name is logical file name in this table, not the database name. Check this out:

    SELECT db_name(database_id) [Database name], Name [Logical file name], Physical_Name [Physical file], size*8 [Size_KB] FROM sys.master_files

    where...

    ...and your only reply is slàinte mhath

  • RE: Attach/Dettach - automate

    I like to write scripts that generate scripts to execute. Please switch SSMS into text mode results and have a look this:

    To generate script that will detach databases you can...

    ...and your only reply is slàinte mhath

  • RE: How to not import final 2 rows of CSV table

    Do they prevent file from being loaded? If not, I guess you can use conditional split to separate them from the rest of the rows.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Millions of documents process in batch with different applications

    I guess the whole application here will become too complicated for the problem that you have anilp.

    What I would see here is single database with tables that would keep...

    ...and your only reply is slàinte mhath

  • RE: Slow execution of query when using datetime variables

    Jim, what would happen if you put the final select to another stored procedure and passed these retrieved dates as parameters to it?

    create procedure innerProc(datetime @start, datetime @stop)

    as

    SELECT col1,col2,col3

    FROM tableA

    INNER...

    ...and your only reply is slàinte mhath

Viewing 15 posts - 46 through 60 (of 388 total)