Viewing 15 posts - 61 through 75 (of 374 total)
The question is. Do you manage the transactions inside the SQL code or from the client?
You can not get that connection back. If you issued a command and the SQL...
April 24, 2009 at 9:57 am
The server will timeout the connection and rollback the transaction.
April 24, 2009 at 9:37 am
This function should work for you. The advantage over GSquared's solution is - no dynamic SQL and you can use it inline to get as many records as you want...
April 24, 2009 at 9:32 am
Your code might be working but the last UPDATE is updating ALL the records not the last inserted only. Your WHERE caluse is basically saying WHERE 1 = 1.
April 24, 2009 at 9:02 am
Create a UDF.
Inside look for each string 'Week', 'day', 'month' individually , find the number of units per each and add them up individually.
I am off to a meeting so...
April 24, 2009 at 7:55 am
I think you meant to do this.
SET @CODE = SCOPE_IDENTITY()
SELECT @CODE AS EducationCodeidno
UPDATE tEDUCATION_CODES set EDucationCodedomainIdno = EducationCodeidno where Educationcodeidno = @CODE
April 24, 2009 at 7:49 am
OK. Few comments.
The EducationCode and EducationCodeType fields require a non empty string. Are you sure you passing some value into the @EducationCodeDesc parameter?
The procedure code you posted. Is...
April 24, 2009 at 7:43 am
Run this and post what you got
SELECT SC.name, SC.xtype, SC.length, SC.domain , C.text
FROM syscolumns SC
INNER JOIN sysobjects SO ON SC.id = SO.ID
AND SO.name = 'tEDUCATION_CODES'
LEFT OUTER JOIN syscomments C ON...
April 24, 2009 at 7:21 am
jwalker8680 (4/23/2009)
Except maybe the length issue and I wasn't aware I was running into that issue... 😛
Lucky you. I found out the hard way. 😀
April 23, 2009 at 10:50 am
On another note.
You should not use @@IDENTITY, use SCOPE_IDENTITY instead.
April 23, 2009 at 9:48 am
The C# should deal with the datetime datatype from the Db correctly if you store the data in datetime objects. For display purposes you should use the proper ToString... methods....
April 23, 2009 at 9:35 am
Jeff Moden (4/23/2009)
Muhammad Kashif Azeem (4/23/2009)
April 23, 2009 at 9:14 am
Outsouring is good for economy.
It works the same way as all products. I do not know if you noticed but the driving force is buy more, use more, etc. Most...
April 23, 2009 at 8:04 am
Muhammad Kashif Azeem (4/23/2009)
April 23, 2009 at 7:55 am
Really wierd.
I tired to reproduce the issue on my SQL Express box and the first time it worked (I mean I was able to reproduce the problem).
Now I can...
April 22, 2009 at 2:52 pm
Viewing 15 posts - 61 through 75 (of 374 total)