Viewing 15 posts - 13,171 through 13,185 (of 13,876 total)
When the user clicks save, why not run an UPDATE query instead?
UPDATE article SET Flag = 3 where ArticleID = [ArticleID from form]
March 14, 2006 at 4:13 am
Try
select convert(char(12),dateadd(s, 5400, 0),114)
for your conversion question.
Your second question - just use
IF NOT EXISTS (select procedure entry here) CREATE PROCEDURE
March 9, 2006 at 9:52 am
For defaults, the SQL Server equivalent of now() is GetDate() and the equivalent of date() is (convert(datetime,floor(convert(float,getdate()))))
March 9, 2006 at 7:18 am
Here's another way that should run quicker.
declare @then datetime
set @then = DateAdd(Day, -7, getdate())
select open_dt
from dbo.tbl_metrics_grca_fl
where open_dt >= @then
March 9, 2006 at 7:02 am
When you create a SQL statement like this in VB it becomes (as you've noticed) very difficult to work out whether it's correct. I suggest you do something like the...
February 21, 2006 at 8:50 am
Please post your query, an example of the results you are getting and an example of the results you would like to get.
February 9, 2006 at 2:04 am
Presumably the data model was created by the programmers, who knew when they were creating it that they would always create at least one ORDER_LINE row for every ORDER row? ...
January 20, 2006 at 4:24 am
As far as I can think, this is best left to the application. There is no standard way of enforcing this - nor can I envisage one.
Of course, it would...
January 20, 2006 at 3:42 am
Stored procedures do not just return resultsets. Check BOL for info on OUTPUT parameters in stored procs.
January 16, 2006 at 9:02 am
Edison was actually more emphatic than this:
"Genius is one per cent inspiration and ninety-nine per cent perspiration. Accordingly, a 'genius' is often merely a talented person who has done all...
January 11, 2006 at 6:28 am
OK. Have a look at the results of running
SELECT Billing.AcctID, Family.AcctID
from Billing inner join Family
on Billing.Student = Family.Student
Which will presumably correlate with the BILLING records that are being updated.
You...
January 11, 2006 at 2:52 am
Are there any NULLs in the CHARGE or PAYMENT entries in BILLING?
January 11, 2006 at 2:14 am
It's all about how the compiler works as it tries to optimise the code. God knows what's going on in detail though.
January 9, 2006 at 2:41 am
That was my guess too ... I just wan't going to say it yet![]()
January 9, 2006 at 2:28 am
So are you saying that something like the statement
update user_master
set field = 'x'
would cause the trigger to fire as many times as there are rows in the table? If...
January 9, 2006 at 2:18 am
Viewing 15 posts - 13,171 through 13,185 (of 13,876 total)