Viewing 15 posts - 1 through 15 (of 25 total)
Hi
Are you running that query on the same box as SQL is installed? Try it on another box and see if you get the same effect. Have...
March 23, 2012 at 8:52 am
Hi,
Yes it is ran in the database where dbo.company is located, but the error message 'object is not found' happens because the database context is switched to master because of...
November 8, 2010 at 6:48 am
Hi
Yes it is on the DELETE statement. I always use CREATE TABLE, never use SELECT INTO as there have been historically issues with that syntax. I must...
November 5, 2010 at 11:49 am
Hi All,
After some more digging around I have isolated it to the fact when the database was originally created they had mix collations in the table creation scripts (these are...
November 5, 2010 at 10:56 am
Better still put the SQL into a stored procedure, which can be encrypted as well. So you can put in a salt value as well. Therefore the external...
September 23, 2010 at 6:13 am
Hi
I am afraid foreign keys can only be applied within the same database. If you wish to enforce data integrity across databases then you will have to
write...
February 4, 2009 at 10:42 am
Hi,
You cannot specify the OR operator in a CASE statement, but you can do this.
SELECT *
FROM sysinfo
WHERE integrity = CASE WHEN @integrity = 'all classified' THEN 1 ELSE 0...
December 10, 2008 at 1:25 pm
Hi
Here is a possible answer, I am not saying it is optimal but it will return the last six months for you.
DECLARE @Months TABLE (Date VARCHAR(20))
DECLARE @Count INT
SET @Count...
October 28, 2008 at 11:52 am
Hi All,
Sorry for giving out bad advise there. I did some more research in BOL and found out why I did not use WITH LOG option on RAISERROR. ...
October 28, 2008 at 11:23 am
Hi
Try chaning the severity to 11. I know that 10 gets convert to 0 internally (see BOL) and the system does not raise any errors for severity 0...
October 27, 2008 at 4:19 pm
Hi d_gomes2
Using the ISNULL function only would not work in this instance as the nulls are creating because of missing records in the catories table. If it was null...
October 23, 2008 at 9:07 am
Hi All,
Quick question the service account you have SQL server running under is a domain account and not local service?
If you check BOL one of the requirements is that it...
October 22, 2008 at 1:28 pm
Hi
Nice article. From a developer point of view I like the new data types (FILESTREAM, DATE etc), sparse columns and Change Data Tracking feature which are available...
October 21, 2008 at 1:07 pm
Hi,
It looks like BULK INSERT does not support variable names. Try something like this instead.
declare @db nvarchar(15)
declare @dbo ...
September 10, 2008 at 12:31 pm
Hi Dugi,
You need SUM instead of COUNT here. The reason is that COUNT returns the number of rows found and the CASE statement will always return 1 row, but...
July 16, 2008 at 10:52 am
Viewing 15 posts - 1 through 15 (of 25 total)