Viewing 11 posts - 16 through 26 (of 26 total)
I figured out why I was getting the syntax error near @count. I needed to place a SET in front of it. Anyways, the query ran, but my logic is...
January 25, 2009 at 11:16 am
I also tried this code based off of an example I found here (http://itknowledgeexchange.techtarget.com/itanswers/bulk-update-in-sql-server-2005/), but I'm getting the same "incorrect syntax near '@d' message.
declare @count as int
declare @d...
January 25, 2009 at 10:10 am
I'm stuck on the looping part. Here's what I have so far:
declare @count as int
declare @stopcount as int
set @count = 1
select @stopcount = count(*) from tasks
while @count <> @stopcount
begin
UPDATE tasks
SET...
January 25, 2009 at 9:58 am
Okay, I tested and the code from my last post worked well. So, I was able to directly update the column to subtract 5 hours from the UTC time.
So, now...
January 25, 2009 at 7:55 am
Thanks for the responses. Is it possible to use the UPDATE statement to subtract 5 hours from the UTC time, directly on the [created date] column like this:
UPDATE table_name
SET [created...
January 25, 2009 at 7:35 am
The export wizard worked well for this application. I did save the SSIS package, but I am having trouble locating it. From your post I gather I use BIDS to...
January 25, 2009 at 7:16 am
You interpreted it correctly. I was hoping it would be something simple. I'll try using BEGIN and END statements. I am going to use it to update multiple fields (columns)...
January 19, 2009 at 12:49 pm
Thanks for pointing me in the right direction - the UPSERT worked. However, I am struggling with one thing pertaining to the update part.
Basically, I did something like this...
if exists...
January 19, 2009 at 12:32 pm
SSC Veteran -
I basically understand everything in the block of code below, except the last two lines. I understand that we are first doing a SELECT query in paranthesis, but...
December 10, 2008 at 9:47 am
Thanks for all the super fast responses. Unfortunately, there are a few things that I need clarification on. This might seem basic, but it appears that you are using correlation...
December 10, 2008 at 8:12 am
bitbucket -
It sounds like I might have posted to the wrong forum. Is that the case? I tried to access the article you referenced (http://www.sqlservercentral.com/articles/Best+Practices/61537/ ), but I...
December 9, 2008 at 6:07 pm
Viewing 11 posts - 16 through 26 (of 26 total)