Viewing 15 posts - 6,796 through 6,810 (of 7,191 total)
Mark
By reading the posts on this site, I think!
John
September 15, 2006 at 2:55 am
James
Sergiy is right - you should look at normalising your database by splitting distinct data from your text field into separate columns. However, to answer your question... look up the...
September 15, 2006 at 2:51 am
Dan-Ketil
Yes. Use the DBCC SHRINKDATABASE statement. You'll find the syntax in Books Online.
John
September 15, 2006 at 2:37 am
John
I've taken the liberty of making the following the Sunday the end date of the week, rather than the Monday that starts the next week, as you have in your...
September 14, 2006 at 9:30 am
Mark
This uses the undocumented (and unsupported) stored procedure sp_MSforeachdb:
sp_MSforeachdb
'use ?
exec sp_helpfile'
John
September 14, 2006 at 9:09 am
Jeff
When I used the word "truncate", I was assuming that the original poster will make the correct choice as to whether to back up the log, or just truncate it. ...
September 13, 2006 at 5:10 am
Yes, but if you create a job to truncate the log every minute (for example), or to truncate it when it gets to 60% full, then at least you have a...
September 13, 2006 at 3:20 am
Darren
I recommend that you read this before proceeding, so that you are aware of any pitfalls of whatever method you choose.
http://www.sommarskog.se/dynamic_sql.html
John
September 12, 2006 at 9:13 am
Something like this?
WHERE ins1.createdate IN
(SELECT createdate FROM tbl_NSP_Inspection
WHERE InspectionUID = @InspectionUID )
I'm afraid I can't help you on the SQL CE side of things.
John
September 12, 2006 at 9:03 am
William
Is Daily_Transactions the name of the database?
DROP TABLE Daily_Transactions.dbo.hist
John
September 12, 2006 at 8:47 am
The two filegroups would have to be on separate physical disks for there to be any performance improvement. I've never analysed it, but I would think if you're pulling a...
September 12, 2006 at 8:38 am
Trystan
Almost right. Take the table name out of the first line to leave just the alias:
UPDATE INS1
SET INS1.IsLastOfDay = 0
FROM tbl_NSP_Inspection INS1
INNER JOIN tbl_NSP_Inspection INS2
ON INS1.InspectionUID =
September 12, 2006 at 8:22 am
Gail
We have our tables on one filegroup and non-clustered indexes on another. While this may not provide the best performance in every case, it is a satisfactory generic solution and...
September 12, 2006 at 6:43 am
You should be aware that if you use dynamic SQL in your stored procedure, it will be executed in the security context of the user running the stored procedure, and...
September 12, 2006 at 3:32 am
Oooh - I don't know. Send it to your favourite good cause.
Seriously, though - happy to help.
John
September 8, 2006 at 2:01 pm
Viewing 15 posts - 6,796 through 6,810 (of 7,191 total)