Viewing 15 posts - 166 through 180 (of 515 total)
Also, if all the tables are varchar and the @Cod variable is still nvarchar(5) even the @cod is not null .. version doesn't work.
January 24, 2008 at 10:39 am
Interesting...
I tried a couple variants to see if I could see a pattern.
-- This works
SELECT @cod='A'
update dbo.t1 set c1=coalesce(@cod ,c1)
FROM dbo.t1
where @Cod IS NOT NULL AND c1=@cod
-- This...
January 24, 2008 at 10:34 am
The following works
set @cod='a'
update dbo.t1 set c1=isnull(@cod,c1) where c1=isnull(@cod,c1)
which is also interesting....
It might have to do with it being an nvarchar vs a varchar. I'll dig further.
January 24, 2008 at 10:08 am
However expletives are most likely the passwords if this really happened as you say..
January 18, 2008 at 12:29 pm
Good point Matt.
The situation that the OP is given the task to fix this issue without DBA access is a lot less likely than the possiblity that an...
January 18, 2008 at 12:28 pm
Steve Jones - Editor (1/16/2008)
January 18, 2008 at 9:11 am
I can't find the response, but Jeff put one out a while back that was perfect for a newbie. I'll try and summarize.
You have already started doing what...
January 18, 2008 at 8:55 am
kipp (1/14/2008)
January 17, 2008 at 2:40 pm
Simple is probably the correct setting, but I realize it seems odd that the log is 2x the size of the db, but we are only talking about 30g. ...
January 17, 2008 at 2:28 pm
I tried to rename the server, and there was just one issue after the other.
My suggestion is to detatch the DB's, re-install after you rename the server, and...
January 17, 2008 at 2:21 pm
Thanks. I realized that after I posted it, but honestly had to get some work done, and forget to get back to it. Just did a small presentation...
January 16, 2008 at 2:15 pm
DB_Newbie2007 (1/15/2008)
January 16, 2008 at 2:12 pm
use EXCEPT.
select * from a
except
select * from b
result will distinct rows in A that are not in B.
You can also add where clauses since you mentioned something about "based...
January 16, 2008 at 12:58 pm
I hope I misunderstood what you are trying to do.
converting all you floats to varchar....
Doing the cast to do the queries, or possibly even creating a computed...
January 16, 2008 at 12:48 pm
try this:
DROP TABLE [#tempTable]
SELECT CAST('hello' AS VARCHAR(128)) AS dbname,*
INTO #tempTable
FROM sys.all_objects
WHERE 1 = 0
INSERT INTO [#tempTable]
EXEC sp_MSforeachdb 'USE ?;SELECT ''?'' as dbname,* FROM sys.all_objects WHERE NAME LIKE ''%cycle%'''
January 16, 2008 at 12:39 pm
Viewing 15 posts - 166 through 180 (of 515 total)