Viewing 15 posts - 13,126 through 13,140 (of 13,838 total)
The entries are not NULL. What makes you think they are? Are you sure they're not just empty ('')?
March 20, 2006 at 5:07 am
Your syntax is fine - and very simple. Try inverting the query
select * from tableA
where col5 is not NULL
and see whether the 'blanks' are returned.
March 20, 2006 at 4:55 am
I think that your understanding is wrong this time - NULLs are fine in FK constraints - at least in SQL Server (BOL confirms).
March 14, 2006 at 12:46 pm
Sounds like the SQL Server service is running under the sys admin account. Find MSSQLServer in Admin Tools / Services and right click - select Properties and then the Log...
March 14, 2006 at 8:53 am
There's a very good chance that, even if you do transfer the DTS packages, they won't work on your PC without being 'tweaked'. For someone who is new to SQL...
March 14, 2006 at 8:22 am
Not really bizarre - it's not the job of SQL Server to present data, that's what the front-end tools that Ray mentioned are for. SQL Server handles the storage, processing...
March 14, 2006 at 8:14 am
I do not understand. This command will work if you execute it directly on the connection that you have created, regardless of your WHERE clause. Whether it gives you the...
March 14, 2006 at 4:58 am
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
Viewing 15 posts - 13,126 through 13,140 (of 13,838 total)