|
-
Sep 14th, 2000, 08:28 AM
#1
Thread Starter
Fanatic Member
I need to do something like this
select @string = 'My table'
CREATE TABLE @string (vchasd varchar(10) null,
vchfg int null)
where @string is a variable
Has any 1 ever done this?
Can it be done?
Thanks in advance
This string variable will be passed to a stored procedure
as an argument
-
Sep 15th, 2000, 07:09 AM
#2
argument to a stored procedure
My understanding of your problem is that you want to run a stored procedure with a stringargument, isn't it?
If yes, U have 2 ways:
-> easy
cn.execute "exec Storedprocedurename '"& vbvar & "'"
that will execute e.g. the following SQL statement:
exec storedprocedurename 'blablabla'
(don't forget the single quotes!
-> annoy me
create a command object, an parameters collection in that command object, populate your argument and execute the command.
franckly, the easy is the best on my mind.
Hope that help.
-
Sep 15th, 2000, 08:35 AM
#3
Thread Starter
Fanatic Member
Thanks
Thanks for responding...
I did describe my intents.. poorly
But I did find a way to solve what I wanted to....do
Thanks again for responding VBGURU
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|