Viewing 15 posts - 331 through 345 (of 1,048 total)
Here is a case that would be better not using Merge. I would just have two separate statements, one the updates rows and one that inserts based on the join....
January 3, 2012 at 11:16 am
You should try to figure this out for yourself. If we do your homework for you you will not learn anything, and subsequently you will never be in competition for...
January 3, 2012 at 10:53 am
In essence, what you want is for the C# application (or thread) to be waiting (sleeping) for an event that comes in the form of a message sent from SQL...
January 3, 2012 at 10:42 am
I wish all of my fellow compatriots here on SSC much success and happiness in the coming new year.
December 30, 2011 at 11:40 am
I have been wanting a nice notebook/laptop computer to replace my old clunker Windows XP machine. It would be wonderful to get it as a gift but that won't...
December 23, 2011 at 12:38 pm
you should create your import table with the correct data type for each column.
As an alternative, you can insert the data from your stage (import) table into a second table...
December 19, 2011 at 11:16 am
SQLChar is unicode character. CLR String is unicode, but the file you create probably isn't unicode.
Sounds like the problem is not being aware of what is unicode...
December 19, 2011 at 11:12 am
try it this way:
Select top 1 @AppUser = UpdatedBy FROM '+ @TableName + ''
December 15, 2011 at 9:25 am
Actually have not needed to do any specific masking operations on the IP addresses as we are looking up the region (city state, country) and organization for fraud detection purposes....
December 14, 2011 at 8:13 am
For some tables I store it as a bigint (convert to bigint via CLR function in insert). Very efficient and works well for huge tables or ones that might...
December 14, 2011 at 5:43 am
I would use two folders, one for the current days worth, another archive folder for the two older days. Run a local job to move the previous days files over...
December 13, 2011 at 11:01 am
I would use robocopy to mirror the two folders. It will delete files at the destination as they are delete at the source.
December 13, 2011 at 10:44 am
Glad you got it working! Ho Ho Ho
December 12, 2011 at 6:58 am
try something like this:
select SOID, DetailID, O.ItemID, ItemType, isnull(R.ItemID,O.ItemID) as equipGroup
from Orders O
LEFT JOIN RelatedItems R on O.ItemID = R.RelatedItem
December 9, 2011 at 12:52 pm
Viewing 15 posts - 331 through 345 (of 1,048 total)