S
Steve Richter
I have the asp.net source of a web application. ( from a great asp.net
book by Wrox )
http://www.amazon.com/exec/obidos/t...002-6140610-0826411?v=glance&s=books&n=507846
The source code includes an sql script that is run to create the
database used by the application.
contains sql stmts like this:
----------------------------------------------
use master
go
IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name =
N'IBuyAdventure')
DROP DATABASE [IBuyAdventure]
GO
CREATE DATABASE IBuyAdventure
GO
exec sp_dboption N'IBuyAdventure', N'autoclose', N'false'
GO
-----------------------------------------------
I used osql to run the script on my PC and everything worked ok.
Now I want to install this web application at my shared hosted web
site. ( as a demo of the great work I can do! )
Is it normal to be able to run "osql" on a shared hosting site like
GoDaddy.com?
If I cant run the script that way, can I run it from .net somehow?
Worst case I would be able to translate the script to a series of
"ExecNonQuery" type method calls, correct? Even the "sp_" stored
procedures can be run that way?
thanks,
-Steve
book by Wrox )
http://www.amazon.com/exec/obidos/t...002-6140610-0826411?v=glance&s=books&n=507846
The source code includes an sql script that is run to create the
database used by the application.
contains sql stmts like this:
----------------------------------------------
use master
go
IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name =
N'IBuyAdventure')
DROP DATABASE [IBuyAdventure]
GO
CREATE DATABASE IBuyAdventure
GO
exec sp_dboption N'IBuyAdventure', N'autoclose', N'false'
GO
-----------------------------------------------
I used osql to run the script on my PC and everything worked ok.
Now I want to install this web application at my shared hosted web
site. ( as a demo of the great work I can do! )
Is it normal to be able to run "osql" on a shared hosting site like
GoDaddy.com?
If I cant run the script that way, can I run it from .net somehow?
Worst case I would be able to translate the script to a series of
"ExecNonQuery" type method calls, correct? Even the "sp_" stored
procedures can be run that way?
thanks,
-Steve