Click here to Skip to main content
15,899,475 members
Home / Discussions / Database
   

Database

 
GeneralC ADO Classes How to get a list of tables Pin
King_of_Queens29-Aug-03 3:49
King_of_Queens29-Aug-03 3:49 
GeneralRe: C ADO Classes How to get a list of tables Pin
Arjan Einbu9-Sep-03 0:31
Arjan Einbu9-Sep-03 0:31 
GeneralCountry Flags Pin
sacoskun29-Aug-03 3:21
sacoskun29-Aug-03 3:21 
GeneralCombo box on Datagrid Pin
Anonymous29-Aug-03 3:12
Anonymous29-Aug-03 3:12 
GeneralRe: Combo box on Datagrid Pin
sacoskun29-Aug-03 3:34
sacoskun29-Aug-03 3:34 
GeneralRe: Combo box on Datagrid Pin
Anonymous29-Aug-03 5:36
Anonymous29-Aug-03 5:36 
GeneralRe: Combo box on Datagrid Pin
sacoskun29-Aug-03 6:48
sacoskun29-Aug-03 6:48 
GeneralSql Server, asp.net, c# unique constraint Pin
aquadogus28-Aug-03 10:16
aquadogus28-Aug-03 10:16 
I'm using asp.net, c#, and Sql Server. I'm calling a sp, and I'm getting an error back. I have the "ExecuteNonQuery" wrapped in a try/catch. I fall into my catch, but what is the best way to find out which column I'm getting a unique constraint error on?

I'm checking SqlException from my catch, and I notice that the SqlException.Number==2627. I also look in the SqlException.Message, and it has some good text in it.

The sp is inserting into a couple of tables, which each have a unique constraint on them.

Do I need to parse the SqlException.Message? Is there a cleaner way?

Thanks in advance,
GeneralADO seek method Pin
popsychin28-Aug-03 7:26
popsychin28-Aug-03 7:26 
GeneralWierd problem with ADO.Net transaction. Pin
FruitBatInShades28-Aug-03 5:07
FruitBatInShades28-Aug-03 5:07 
GeneralRe: Wierd problem with ADO.Net transaction. Pin
andyharman31-Aug-03 12:16
professionalandyharman31-Aug-03 12:16 
GeneralRe: Wierd problem with ADO.Net transaction. Pin
FruitBatInShades1-Sep-03 1:08
FruitBatInShades1-Sep-03 1:08 
GeneralAccess and ASP Pin
LukeV27-Aug-03 10:17
LukeV27-Aug-03 10:17 
GeneralRe: Access and ASP Pin
Nino_127-Aug-03 19:36
Nino_127-Aug-03 19:36 
GeneralRe: Access and ASP Pin
Hesham Amin27-Aug-03 22:14
Hesham Amin27-Aug-03 22:14 
GeneralRe: Access and ASP Pin
RichardGrimmer1-Sep-03 5:13
RichardGrimmer1-Sep-03 5:13 
GeneralOleDb Connection Pin
Dan Betting27-Aug-03 10:08
sussDan Betting27-Aug-03 10:08 
GeneralRe: OleDb Connection Pin
andyharman27-Aug-03 10:52
professionalandyharman27-Aug-03 10:52 
GeneralRe: OleDb Connection Pin
Dan Betting27-Aug-03 11:49
sussDan Betting27-Aug-03 11:49 
GeneralRe: OleDb Connection Pin
Bo Hunter27-Aug-03 12:41
Bo Hunter27-Aug-03 12:41 
GeneralRe: OleDb Connection Pin
Chris Blazek30-Aug-03 18:17
sussChris Blazek30-Aug-03 18:17 
GeneralsqlDataAdapter Recommendation Pin
econner27-Aug-03 8:03
econner27-Aug-03 8:03 
GeneralRe: sqlDataAdapter Recommendation Pin
Mike Dimmick28-Aug-03 3:16
Mike Dimmick28-Aug-03 3:16 
GeneralSetFieldNull. Pin
Anonymous26-Aug-03 9:13
Anonymous26-Aug-03 9:13 
GeneralODBC Q Pin
Frank Olorin Rizzi26-Aug-03 7:39
Frank Olorin Rizzi26-Aug-03 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.