Viewing 15 posts - 5,866 through 5,880 (of 6,036 total)
SELECT *
INTO ...
FROM ...
There is F1 key on your keyboard. It calls BOL. It's really useful in case of syntax questions.
November 4, 2005 at 6:58 am
There are tables inserted and deleted to indicate in which rows there are changed values.
Of course, if you are trying to set value = 3 where it was 3 before...
November 4, 2005 at 6:54 am
Actually yes.
There are 2 issues in your approach:
1. You are doing full updates even if nothing changed in the table;
2. Data in your "updated" column is inconsistant with the rest...
November 4, 2005 at 6:45 am
It's much easier to have IDENTITY column.
November 4, 2005 at 5:29 am
Sorry, it does not make any sence.
What does it mean - multiple statuses can be entered into the table simultaneously?
What's a point to apply status if it's already overwritten...
November 3, 2005 at 11:39 pm
It's better to have DateChanged column with default GETDATE().
Column Data Type
Status_Code Int Not null
Request_Id Int Not Null Key
DateChanged smalldatetime Not Null Key
It gives you more information and stores some kind of...
November 3, 2005 at 8:23 pm
you cannot use variables within IF UPDATE. You must explicitly specify column name:
IF Update(Consumer_info)
If you wand to dynamically define which column to check for updates use COLUMNS_UPDATED().
November 3, 2005 at 8:07 pm
Are you going to update whole table 4 times every time any single row is updated?
Hard drives on your server not gonna stay long.
November 3, 2005 at 3:20 pm
Why you need to store your code as SP if you can execute it immediately when you need it?
Are you trying to allow users to create SP from front end...
November 3, 2005 at 3:15 pm
Check data in your table first.
Use
SELECT ...
WHERE ISDATE (WCvideoAmount) = 0
It will show you all rows with values causing error.
November 3, 2005 at 3:05 pm
If there is no BEGIN ... END only the first followin statement is included into IF.
After this 1st statement IF is considered finished and 2nd statement will be executed without...
November 3, 2005 at 2:54 pm
SELECT ...
FROM TABLE
WHERE
tarih >= convert(datetime, convert(int, GETDATE() - 0.5)) + convert(datetime, '1900-01-01 16:00:00')
and
tarihb <= convert(datetime,...
November 3, 2005 at 12:35 pm
Can you explain in plain English what are you trying to achive?
As I understand, you have table with log of calls or something and another table with tariff definitions, e.g....
November 3, 2005 at 3:22 am
Why?
Everything is before your eyes.
Just don't be lazy.
SELECT ...
FROM TABLE
WHERE DateTimeColumn between convert(datetime, convert(int, GETDATE() - 0.5)) + convert(datetime, '1900-01-01 16:00:00') and convert(datetime, convert(int, GETDATE() - 0.5)) + convert(datetime, '1900-01-01...
November 3, 2005 at 1:54 am
Add year to PRIMARY KEY.
November 2, 2005 at 5:35 pm
Viewing 15 posts - 5,866 through 5,880 (of 6,036 total)