Viewing 15 posts - 1,681 through 1,695 (of 2,038 total)
1. using a SQLVariant to encode attribute values
😀
2. encoding all attribute values as strings
😀 😀 ... and now the database would not be slow or maybe corrupt. Now it would...
March 29, 2009 at 3:36 pm
I have n number of geometric shapes like triangle, square, rectangle, circle, cone, pyramid, cylinder etc.
Hi
I hate to say that but maybe the EAV design may be an option for...
March 29, 2009 at 3:15 pm
Hi
If you are executing several update statements the previous data will be written before you get the error. To handle this you should use a transaction and a TRY-CATCH block.
Greets
Flo
March 29, 2009 at 12:18 pm
What the hell??? Six new posts?
Dang! I'm too slow...
March 29, 2009 at 12:05 pm
Hi
So, my attempt...
If you want to know how to insert a "symbol" into a table the answer depends on the used client side programming language. On database side you have...
March 29, 2009 at 12:03 pm
Hi ravinegi
I don't want to comment the "very thorough" (I just can confirm the others).
If I overlook this claim there is another problem with your post. As Lutz already denoted...
March 29, 2009 at 11:42 am
sqlblue (3/28/2009)
for the security reason, but that is good to know. Thanks again.
Thank you very much...
March 28, 2009 at 2:45 pm
Nevertheless my old chief (older C programmer) would say 128byte are quiet much place for BIT masks... 😉
The 0x01 was just an example. Sure it's not nice, but sometimes...
March 28, 2009 at 12:36 pm
Try to handle it with CONTEXT_INFO and a transaction.
Within your DELETE trigger:
-- ...
BEGIN TRANSACTION
SET CONTEXT_INFO 0x01
-- do your update
SET CONTEXT_INFO 0x00
COMMIT TRANSACTION
Within your UPDATE trigger:
IF (CONTEXT_INFO() = 0x01)
...
March 28, 2009 at 11:41 am
Didn't know that other languages are also available.
Thanks!
Flo
March 28, 2009 at 11:32 am
Geek! 😛
How did you format the C# code?
Greets
Flo
March 28, 2009 at 10:44 am
J (3/28/2009)
March 28, 2009 at 10:42 am
Hi sqlblue
Because Jeffrey is absolutely correct I will not attach any compiled assembly ;-).
You asked if you just copy-paste the class so I guess you have Visual Studio. I just...
March 28, 2009 at 10:38 am
I don't understand your question. Where are your synonyms from? If they are in database you can use the FOR XML to create the XML file. If they are in...
March 28, 2009 at 6:05 am
Yes, it's quiet simple to handle XML in SQL Server since 2k5. If you are using SQL Server 2k the XML functionality is quiet limited. Here a little example:
/*
sample xml:
<root>
...
March 28, 2009 at 5:59 am
Viewing 15 posts - 1,681 through 1,695 (of 2,038 total)