jason
Thu Nov 20 16:10:34 CST 2003
Hey Ray - I got the code toad working example up and running and it works
great for simple selects but how does one syntaxically exec a stored
query...do you use the same syntax as asp or do you assume you are inside
the access database:
For instance,
SQL = "EXEC qry_ListingPriceChanges_Condition @LID=Null, @ConID=" & ConID &
" ,@ActiveID=" & ActiveID 'Response.Write SQL 'Response.END set rs =
cnn.execute(SQL
If I keep the above simple and attempt to run it via the query analzyer:
qry_ListingPriceChanges_Condition @LID=Null,@ConID=Null,@ActiveID=Null
...I get 0 records affected - but is this the way I should be writing it or
like this:
EXEC qry_ListingPriceChanges_Condition @LID=Null,@ConID=Null,@ActiveID=Null
Either way seems to bring 0 records....any advice?
Thanks
Jason
"jason" <jason@catamaranco.com> wrote in message
news:O3BE8E7rDHA.2224@TK2MSFTNGP09.phx.gbl...
> I am also looking at this code snippet -
>
>
http://www.codetoad.com/asp_query_displayer.asp
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:#Sp8Ef6rDHA.2304@tk2msftngp13.phx.gbl...
> > This is probably the link that I posted. (Be aware that this page will
> > display an unprofessional word on your monitor, so if you work at a
church
> > or something, make sure you don't offend anyone.)
> >
> >
http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp/908.asp
> >
> > And here is something that I posted to another forum a few months back.
> >
> > <quote>
> >
> > You can modify you Acccess db with sql commands if you can't take your
> > site off line. You can just make yourself a password protected SQL
> > command page like so:
> >
> >
> > <form name="frmDatabase" method="post" action="sql.asp">
> > Enter SQL Command Below<BR>
> > <textarea name="txtSQL" style="width: 550px; height: 100px;"></textarea>
> > <input name="cmdSubmit" type="submit" value="Submit">
> > </form>
> >
> >
> >
> >
> > Then post that to a page like:
> >
> > sSQL = Request.Form("txtSQL")
> > ''create your connection and connect here
> > YourConnectionjADO.Execute sSQL
> >
> >
> >
> > You can pass things like "ALTER TABLE [TableName] ADD COLUMN
> > NameOfYourNewColumn text(100)"
> >
> > Just make sure you protect you pages heavily! If unauthorized person
> > gets in there, he could delete all your data, drop your tables, etc.
> >
> >
> > </quote>
> >
> > Ray at work
> >
> >
> >
> >
> >
> > "jason" <jason@catamaranco.com> wrote in message
> > news:eksdcJ6rDHA.536@tk2msftngp13.phx.gbl...
> > > Hi Ray...a while ago you explained an elegant solution to enable me to
> > > CREATE and EDIT existing tables and queries inside my online access
2000
> > > database.... could you provide refresher links on this or possibly
some
> > > starter code?
> > >
> > > I am just so sick of the syncronization problems that come into play
> when
> > > you adjust underlying tables and queries offline and then have to
> > overwrite
> > > the live database?
> > >
> > > Many thanks Jason
> > >
> > >
> >
> >
>
>