Viewing 15 posts - 91 through 105 (of 859 total)
bugg (11/14/2012)
capnhector (11/14/2012)
November 14, 2012 at 3:55 pm
We perform a nightly backup and restore to our standby server. the way we answered the "How long till i move it?" was to set up the backup and...
November 14, 2012 at 2:52 pm
You need to convert the numeric value to a text value. http://msdn.microsoft.com/en-us/library/ms187928.aspx Once all the data is strings you can concat to your hearts content.
November 14, 2012 at 2:36 pm
User permissions are stored in the database. If i take a backup of MyDatabase and restore it onto a different server all the permissions are going to be the...
November 14, 2012 at 2:34 pm
Duplicate post see here http://www.sqlservercentral.com/Forums/Topic1384732-391-1.aspx
November 14, 2012 at 2:28 pm
This works but some of the others on the forum may be able to make it better.
Here is how the code works: First we declare and set our start...
November 14, 2012 at 2:17 pm
i have a question about #Working_Pattern. This table holds the days of the week an employee works with the start date being the date the new schedule became effective?
I...
November 14, 2012 at 1:00 pm
I just wrote up a similar course and could not find any sample data to my liking. I started with Adventureworks but due to the multiple schema's decided against...
November 14, 2012 at 11:57 am
First thing we need to do is find the first of next month with the following:
DATEADD(MM,DATEDIFF(MM,0,GETDATE()) + 1,0)
Next we can just subtract a day to get the last day of...
November 14, 2012 at 11:52 am
glad to help. its one of those things that some days you just cant find on google untill you post the question. then the next search you run...
November 14, 2012 at 10:57 am
You need to change your case statement a little to be like this "CASE WHEN ABS (DATEDIFF(day, admitdate, dischargedate)) BETWEEN 0 AND 7 THEN 1"
A small optimization that may speed...
November 14, 2012 at 10:52 am
For the physical server you can run "net statistics server" and take a look at the time.
November 13, 2012 at 2:37 pm
Nice DDL Trigger on the create database however you can avoid the cross join to sys.databases by using the following query:
SELECT DATEADD(DD,N,dateadd(dd, 0, DATEDIFF(dd, 0, getdate()))) AS backupdate,
...
November 13, 2012 at 1:33 pm
Ok here is the answer to the actual question. What we have is the classic i need all the columns but only with the MAX(Date). There are 2...
November 13, 2012 at 11:13 am
When using a VARCHAR() or CHAR() column the MAX() on a field returns the highest letter (I think its based on the ASCII CHAR() value but i could be wrong,...
November 13, 2012 at 10:44 am
Viewing 15 posts - 91 through 105 (of 859 total)