Viewing 15 posts - 46 through 60 (of 388 total)
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...
January 7, 2010 at 7:31 am
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...
January 4, 2010 at 5:41 pm
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...
January 3, 2010 at 5:02 pm
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
December 16, 2009 at 5:55 pm
Well, if the database is offline you can't connect to it, so why would you want to write anything to it?
Regards
Piotr
November 30, 2009 at 7:02 am
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...
November 29, 2009 at 12:56 pm
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...
November 29, 2009 at 12:38 pm
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...
November 19, 2009 at 4:54 am
Oh yes, this script only reflects requirements specified by OP. You can definitely taylor it to suit your needs.
Regards
Piotr
November 18, 2009 at 12:55 pm
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)...
November 13, 2009 at 11:37 am
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...
November 13, 2009 at 10:58 am
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...
November 13, 2009 at 10:49 am
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
November 12, 2009 at 6:06 pm
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...
November 12, 2009 at 9:24 am
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...
November 11, 2009 at 6:12 pm
Viewing 15 posts - 46 through 60 (of 388 total)