Viewing 15 posts - 166 through 180 (of 222 total)
I think first and last date of year will always be same irrespective of what year is it. 😉
first date: 01/01/ year
last date: 31/12/ year
therefore, no need to use dateadd...
August 7, 2008 at 7:03 pm
Hi Utsab
It entirely depends on what you want to achieve.
If the contents of file are going to be updated too frequently, i would suggest to load the file to...
August 7, 2008 at 6:36 pm
Thanks All. Appreciate your quick response for big help. 🙂
July 31, 2008 at 6:37 am
Legal Disclaimer/Warning
Please remember that when using an SP you are not sure the outcome or effect it has should be done on test systems; never use anything that has not...
July 29, 2008 at 12:01 am
was doing research on internet, i found that i could use -b and -r tags in order to trap error messages, but i cant see anything in return from sqlcmd...
July 23, 2008 at 5:59 am
i don't know where i could use it but above all good to learn something new. 🙂
July 10, 2008 at 11:48 pm
Ian Scarlett (7/9/2008)
The last one probably timed out because it took longer than the others to back up.
yes the database was marginally bigger than others.
You will need...
July 9, 2008 at 3:42 am
if you are going to create new table and then rename it, make sure you have a the table script of existing table with all table objects.
July 8, 2008 at 7:21 pm
rbarryyoung (7/3/2008)
As for...
July 3, 2008 at 9:29 pm
bpbhalerao (6/25/2008)
Hi All,thanks a lot for all your help. I created one function for this which will calculate the total no. of Mondays or Tuesdays... etc.
Hi bpbhalerao
Can you please...
June 25, 2008 at 10:17 pm
Even i am of same opinion as of Jeff's
June 24, 2008 at 5:39 pm
James is right. If your query is not in any kind of variable, then only way out is to copy it in any text editor and replace 1 single quote...
June 4, 2008 at 11:53 pm
Todd Engen (6/4/2008)
Something like this should work too.
DECLARE @myColumn VARCHAR(MAX)
SET @myColumn = (SELECT name + ',' FROM sys.databases FOR XML PATH(''))
PRINT @myColumn
Hi todd
you have to get rid of ',' at...
June 4, 2008 at 11:44 pm
Ken
your script uses sp_MSForEachtable which is an undocumented procedure. As for knowledge, is it advisable to use undocumented procedures on production server as i cant hope for any support...
June 4, 2008 at 11:19 pm
Viewing 15 posts - 166 through 180 (of 222 total)