Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,
when i am researching SQl and C#, i saw this API:
https://technet.microsoft.com/en-us/library/ms345134%28v=sql.90%29.aspx[^]

It's said the new API can provide new method for programming with SQL-C#.
I read it. But it's not enough. I looked for example code but all about tool(sql profiler tool).
So please help me.
I just want to code example.
Thank in advance.
Posted
Comments
barneyman 20-May-15 22:03pm    
what are you trying to achieve? there's plenty of example code in there to create, replay and examine traces ..
Tokisan 21-May-15 5:02am    
I am trying to used the new API for SQL tracer in my given link so that i know how to use. especially, how to select, insert, update and DELETE, i think i can insert update and select, but have no idea how to delete record. And how to use with "ODBC" connection in "ODBC" Aplication. I am doing my research. But it would be appreciated if someone help me. Thank in advance and sorry for my bad English.
Tokisan 21-May-15 5:03am    
Please just show me a hint. Thank in advance.
barneyman 21-May-15 5:20am    
oh - you just want to talk to a SQL database from C#?

that's EASY ...

1 solution

your comment above would suggest you're simply trying to use SQL from C# - you stumbled across a link that was talking about the profiler ...

this SQL/C# article[^] may help you
 
Share this answer
 
Comments
Tokisan 22-May-15 0:46am    
I knew how to connect to sql. What i am trying is using the API , provived by Micrpsoft with this link: "https://technet.microsoft.com/en-us/library/ms345134%28v=sql.90%29.aspx", and programming an ODBC aplication based on this API.
Microsoft said this API provide the new high-security method to talk to SQL.
I am looking for deeper materials and example.
Tokisan 22-May-15 0:47am    
Sorry i am not good at English.
barneyman 22-May-15 1:02am    
it's better than my Vietnamese ;)

The link you point to is *specifically* about using the SQL profiler, which is a performance and monitoring tool for SQL, that API provides no ability to access SQL data securely - i'm unsure what you're trying to achieve ..
Tokisan 22-May-15 1:22am    
Yeah, tha's it. I want to implement SQL server profiler API into my "ODBC" Application. But don't have much examples on this. Anyway, thank for concerning me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900