Viewing 15 posts - 241 through 255 (of 279 total)
Digs (1/6/2013)
....
The result from the 1st SELECT is this:
201302201253201252201251
As you can see I am missing 201301
QUESTION: how can I fix this? I need YYYYMM in order.
PS: I...
January 6, 2013 at 1:24 pm
Not WHERE clause, but HAVING, because you want filter out groups. Add after GROUP BY block HAVING Max(WQ.WorkQueueEndWorkDate))%3600/60)>=120
January 6, 2013 at 4:39 am
Remove set XACT_ABORT ON and implement TRY CATCH http://msdn.microsoft.com/en-us/library/ms175976%28v=sql.100%29.aspx, so this proc should looks like (I can't test it so first test it):
CREATE PROCEDURE [dbo].[proc_Master_Schedule]
...
January 6, 2013 at 3:57 am
What exactly is your problem? According to BOL "A view can be referenced only by an INSTEAD OF trigger." http://msdn.microsoft.com/en-us/library/ms189799%28v=sql.90%29.aspx
January 5, 2013 at 4:19 am
You could use linkedservers, openrowset http://msdn.microsoft.com/en-us/library/ms190312.aspx or openquery http://msdn.microsoft.com/en-us/library/ms188427.aspx
eg. openrowset SELECT * FROM OPENROWSET('SQLOLEDB', 'Server=HOSTNAME;UID=DB_USER;PWD=StronPassword;','select * table');
January 4, 2013 at 11:55 am
DB Owner dbo http://msdn.microsoft.com/en-us/library/ms178630.aspx.
DBO is like sysadmin on instance level, but only on a particular database level.
January 4, 2013 at 11:46 am
Yes you can, but first ask yourself if you really want/need this? Log growing is a very IO expensive process, and have huge impact on performance.
January 4, 2013 at 1:57 am
Bhuvnesh (1/4/2013)
Does statistics help to create optimal exec plan ?
Actual statistics, yes. This is they purpose.
Bhuvnesh (1/4/2013)
January 4, 2013 at 1:53 am
They are totally different solutions. There are just a few similarities not a difference.
January 4, 2013 at 1:46 am
rchafei (1/2/2013)
Sorry, I'm not clear on your question; so I'll give it a shot: the users change the data via windows user interface
I've actually considered...
January 2, 2013 at 1:33 pm
Why in that way? Why don't you use backup and restore? Or you can make script for DB creation, with or without data from SSMS.
January 2, 2013 at 8:12 am
opc.three (1/2/2013)
USE AdventureWorks2012
SELECT TOP 100
[TransactionID]
...
January 2, 2013 at 8:07 am
.CMD files with for loops and execute sql script by using sqlcmd, or more current and more powerfull PowerShell.
December 14, 2012 at 2:37 am
Have you ever cleaned backup history?
http://technet.microsoft.com/en-us/library/ms188328.aspx
exec msdb.dbo.sp_delete_backuphistory 'oldest_date'
December 14, 2012 at 2:28 am
raotor (12/12/2012)
Ninja's_RGR'us (12/12/2012)
FULL restore, including diffs and logs.
THEN run checkDB.
Now you know you're good.
Once that's done you can't move the files because they could get corrupted...
December 13, 2012 at 1:30 am
Viewing 15 posts - 241 through 255 (of 279 total)