Viewing 15 posts - 46 through 60 (of 99 total)
Ah, silly me, that should have been OR, not AND
December 18, 2006 at 5:50 am
Anything wrong with the good old,
WHERE col1 IS NOT null
AND col2 IS NOT null
AND col3 IS NOT null
...
AND col20 IS NOT null
December 18, 2006 at 5:36 am
what about the USER_NAME() function? This works in 2005, unfortunatly I don't have 2000 to check it on.
This will return the user name of the currently connected user, eg. 'sa',...
December 15, 2006 at 6:04 am
As a side note, that should be char(13) + char(10) [CR LF] according to the email standard.
Also when testing you can use:
print @message
This will display the line breaks as well...
November 14, 2006 at 5:44 am
I don't think so, mirroring works at the database level.
November 7, 2006 at 5:31 am
The simple problem of when some one tries to ask you to find duplicate numbers in such a field, the seperate table with appropriate keys would have prevented this, finding...
November 7, 2006 at 2:51 am
Instead of storing integer data comma seperated in a single column, could you move this data into a seperate, related table?
November 1, 2006 at 6:34 am
Ah good point, my inner join should have been a left join
November 1, 2006 at 6:27 am
> is it possible to test if no rows are returned and substitute something more friendly like "no information available"?
Would this be something better handled by the application?
November 1, 2006 at 6:25 am
You could use a sub query:
TABLE x (
a int
)
TABLE y (
a int,
b int
)
SELECT a, b
FROM x
INNER JOIN (
SELECT TOP 1 a,b
FROM y
ORDER BY b...
November 1, 2006 at 6:22 am
Ah, so products contains a super set of all products say? and bikes are just those products that are a bike, and parts are just those products that are part?
Thus...
October 25, 2006 at 6:10 am
I normaly have the scripts that modify the DB from the current live version to the current development version set up to run as a batch file.
Thus one way could...
October 24, 2006 at 6:02 pm
alternative way to loop if you want all the rows (dt is the datatable)
For Each row As DataRow In dt.Rows
'Do stuff with row
Next
October 24, 2006 at 5:55 pm
I think sql express often likes to install with an instance name of something like SqlExpress so you might need to use "(local)\SqlExpress" as the data source (or what ever...
October 24, 2006 at 5:37 pm
How well would the windows indexing service work? Store the files in the files system and use that and not sql server? Not sure what sort of speeds you'd get...
October 24, 2006 at 5:22 pm
Viewing 15 posts - 46 through 60 (of 99 total)