Viewing 14 posts - 361 through 375 (of 375 total)
SELECT * FROM table1
WHERE
(DATEPART(quarter, @date) = 1 AND YEAR(table1_date) - 1 = YEAR(@date) AND DATEPART(quarter, @date) = 4)
OR
DATEPART(quarter, @date) <> 1 AND YEAR(table1_date) = YEAR(@date) AND DATEPART(quarter,...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
January 5, 2006 at 10:42 am
You don't need the Location_1 in group by. Because it is the column name in your table this is screwing up your query
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
January 5, 2006 at 9:26 am
Why do you want to use DTS for this? Can you link the servers and the run an insert statement on the destination server. (I am assuming you have this...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
December 19, 2005 at 8:45 am
I think you should be able to get it done in just few minutes.![]()
The table create statement shouldn't take you more then a...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
December 18, 2005 at 5:44 pm
What you may want to do is create a table myTable1 with identical structure as yours plus one additional field with IDENTITY attribute. Then simply insert into this table all...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
December 18, 2005 at 3:41 pm
I said that it looks like the DTS does not provide the values for this column. In this case the default would work. If the NULL is forced down on...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
December 18, 2005 at 6:05 am
I don't understand this fascination with cursors. I have seen people using them in cases where a much simpler plain SQL code will do.
If one has a proper database design there...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
December 16, 2005 at 8:56 pm
Looks like your DTS is not providing the values for this column. What you can probably do (if you have the rights to) is to setup default on that column...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
December 16, 2005 at 8:41 pm
Do you have a firewall on that box the MSDE sits on?
I think you may need to open UDP 1434 to access the SQL Server via EM.
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
December 16, 2005 at 2:49 pm
Try this
SELECT DATEADD(day, DATEDIFF(day, 0, getdate()), 0)
You can make it into UDF
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
December 16, 2005 at 2:20 pm
About the utility:
Good idea, horrible implementation. Looks like early prototype not a beta version.
Very disapointed. I used SQL Compare (GREAT TOOL) from the same company but this ulility looks like written...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
September 23, 2005 at 8:11 am
Unfortunatelly I have to disagree with your comments about APC being late warning their customers. They have been sending the warning emails for months now. I have received at least...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
August 18, 2005 at 6:57 am
The problem of using CHAR type in this case is that then the concatenated string will look like this ( taking Everett's example):
9 /13/2004 - note the space after 9
And although the...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
September 14, 2004 at 9:54 am
In my opinion using the DATEADD function is the cleanest way to achive what you need. You do not have to create a messy logic to deal with changing months...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
September 14, 2004 at 7:25 am
Viewing 14 posts - 361 through 375 (of 375 total)