Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL Scripts

Author  Topic 

arusu
Yak Posting Veteran

60 Posts

Posted - 2011-08-08 : 17:09:08
I don't know if this is the right place for this question but I have some sql scripts and I need to execute them in code (using .NET C#) How can I do this?

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-08-09 : 02:21:35
http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson01.aspx


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

arusu
Yak Posting Veteran

60 Posts

Posted - 2011-08-09 : 08:54:59
Not right at all! You thought that because I said C#, you would reply with ADO.NET. Why do you have to guess?
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-08-09 : 10:13:19
http://lmgtfy.com/?q=sql+server+c%23+.net


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

arusu
Yak Posting Veteran

60 Posts

Posted - 2011-08-09 : 10:58:24
Nice try again but still not what I was looking for. I need an sql script to run and I found that by using the SQLCMD utility, this can be achieved. Thanks for the answer though rookie
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-08-09 : 11:03:49



No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -