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.
| Author |
Topic |
|
sudha12345
Starting Member
47 Posts |
Posted - 2009-06-08 : 08:58:21
|
| I has a SQL script with name and extension Facility_detail.sql.i want to execute this sql file from a text filein a text file i will incorporate the sql script and i want to call the text file in SQL SERVER so that it will execute the sql file Facility_detail.sqlis it possible to do this. can any one give me the solutionSudhakar |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-06-08 : 09:01:48
|
| Read about osql in sql server help fileMadhivananFailing to plan is Planning to fail |
 |
|
|
Gene Lowy
Starting Member
1 Post |
Posted - 2009-06-08 : 09:19:38
|
| Try thisosql -U username -P pwd -S Server -i c:\YourDir\Facility_Detail.sqlThere are other options available from osql but this will get you started |
 |
|
|
|
|
|