Viewing 15 posts - 271 through 285 (of 476 total)
randyetheridge (9/23/2015)
isnull(cast([OriginatingLeadId] as VARCHAR(36)),'NA')
when checking for NULL in a uniqueidentifier field you have to cast it as...
September 23, 2015 at 10:02 am
Whenever I have to do this (convert Regular SQL to doubled-quoted SQL to insert into a @variable) I cut & paste the SQL statement to a new, empty, editing window...
September 23, 2015 at 7:37 am
Phil Parkin (9/23/2015)
Until that setting is fully deprecated, I don't think that SQL Server could possibly moan about this 🙂
I'm not letting SQL off the hook 😛 - it is...
September 23, 2015 at 7:22 am
Blimey! Wouldn't KEEP be the more obvious default choice (and NOKEEP the optional one)?
September 23, 2015 at 5:05 am
or @YesNo IS null)
I wish that SQL Server have a mode/flag/option that would moan about things like this ... on the occasions that they take hours to find the time...
September 23, 2015 at 5:03 am
Stewart "Arturius" Campbell (9/23/2015)
I believe it was, inter alia, to make the transition from Access-based databases to SQL Server simpler.
Hadn't spotted that CHOOSE was added in SQL2012 ...
... nor that...
September 23, 2015 at 4:45 am
Eirikur Eiriksson (9/23/2015)
Until one tries to inert the empty string into the uniqueidentifier column;-)😎
Indeed :-), and that is actually what the error message is saying of course:
"Conversion failed when converting...
September 23, 2015 at 4:40 am
I think it depends a bit on how complex your code is (I assume your example is a trivial example compared to the actual code), but I don't know for...
September 23, 2015 at 4:34 am
fabriziodb (9/23/2015)
1) insert the rows from parameter that are not in the table
2) update the rows that are both...
September 23, 2015 at 4:30 am
As I understand it you have a "full backup" mde when all users are our of the system, e.g. at end-of-business. But it is not clear to...
September 23, 2015 at 3:51 am
Chris-475469 (9/22/2015)
I'm trying to improve the loading of some tables with large amounts of data
Dunno if this is relevant, but can you pre-sort the imported data into Clustered Index Key...
September 23, 2015 at 3:43 am
WayneS (9/22/2015)
DECLARE @t UNIQUEIDENTIFIER = ''
This will...
September 23, 2015 at 3:38 am
We do a few things to our databases that are released to Clients (i.e. our database is a 3rd party APP on their servers)
We keep all Sproc, View, Trigger, etc....
September 23, 2015 at 3:32 am
We have a filter index including WHERE MyKeyColumn IS NOT NULL on some of our FKey-supporting indexes - e.g. where we have an FKey on a User Defined Column which...
September 23, 2015 at 3:03 am
erichansen1836 (9/22/2015)
If for example you wanted to restore the database to yesterday at EOB, first restore your backup off the thumbdrive(s) from yesterday at EOB.
But I don't have a...
September 22, 2015 at 1:04 pm
Viewing 15 posts - 271 through 285 (of 476 total)