Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
How to sql script file in c#.net?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
nirmalsingh
New Member
Join Date:
Sep 2006
Posts:
218
#1
How to sql script file in c#.net?
Aug 2 '08, 05:12 AM
hai all, i am having a sql script file, have to run it by c#.net code.
How to do this?
Thanx in advance.
Regards Nirmal.
Curtis Rutland
Recognized Expert
Specialist
Join Date:
Apr 2008
Posts:
3264
#2
Aug 2 '08, 05:25 AM
Why don't you just read it as a text file into a string, and then just use that string as your CommandText?
Check our howto sections:
Write/Read A Text File - C#
How To Use A Database In Your .NET Program Part I
How To Use A Database In Your .NET Program Part II
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment