Viewing 15 posts - 25,261 through 25,275 (of 26,487 total)
Check this thread for the code from one of my Script Tasks:
http://www.sqlservercentral.com/Forums/Topic443977-148-1.aspx#bm444004
You would then use the value returned from the Script Task in a File System Task to rename the...
February 14, 2008 at 10:08 am
To expand a little. We installed SQL Server 2005 DE on a development server (don't have our QA servers yet). We purchased one copy of SQL Server 2005...
February 13, 2008 at 2:25 pm
From what I have been able to determine, you need the Professional version of Visual Studio or better to debug stored procedures. That was one of my big complaints...
February 13, 2008 at 1:55 pm
We purchased SQL Server 2005 Developer Edition for our development and QA environments, and SQL Server 2005 Enterprise Edition for our production environemnts. I would say, even for non-critical...
February 13, 2008 at 1:51 pm
Wouldn't you have to write this:
select DATEADD(dd,DATEDIFF(dd,0,Mydate),'19000101')
like this:
select DATEADD(dd,DATEDIFF(dd,'19000101',MyDate),'19000101')
if you wanted to eliminate the implicit conversion between int and datetime?
😎
February 11, 2008 at 4:45 pm
Adding surrogate keys just to ensure a data record is unique may not be the best use of surrogate keys. But if a data record does not have a...
February 11, 2008 at 10:36 am
I think I see a misunderstanding of the use of natural keys vs surrogate keys in one of the posts. Yes, WHERE State = 'MN' is clearer than WHERE...
February 11, 2008 at 9:47 am
I'd have to say I'm in the middle as well. It really depends on the system you are building or supporting. In a data warehouse, I feel they...
February 10, 2008 at 10:39 pm
Try this:
select replace(replace(replace(replace(convert(varchar(30), getdate(), 121),'-',''),' ',''),':',''),'.','')
😎
February 6, 2008 at 10:04 am
We are running two x64 servers, and do not have AWE enabled, and everything works fine. In your x64 environment you should be fine.
February 6, 2008 at 9:43 am
This is also a good article on how to ask for help:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
February 6, 2008 at 9:40 am
Technically a table can only have one primary key. You can have more than one unique index, and these are called alternate or candadate keys.
😎
February 6, 2008 at 9:37 am
February 6, 2008 at 7:54 am
Here is another way to do it:
CREATE Function GetMonthEnd(@Date DateTime)
Returns DateTime
AS
Begin
Return (dateadd(mm, datediff(mm, 0, @Date) + 1, 0) - 1)
End
February 5, 2008 at 4:42 pm
Could you provide the DDL for the entire sp, not just the query it is running?
thanks
February 5, 2008 at 4:07 pm
Viewing 15 posts - 25,261 through 25,275 (of 26,487 total)