Viewing 15 posts - 11,986 through 12,000 (of 18,923 total)
Ya I had to code for that once... Since I had a application I did 2 searchs... The first search was only considering objects with one entry, then the second...
August 31, 2006 at 8:51 am
SysComments is a system table that holds all the scripts of all the objects of the database (sps, triggers, views...). So this technic is really fast an effective to find...
August 31, 2006 at 8:12 am
August 31, 2006 at 6:58 am
Seems like a nice comprosime... but I hope you don't have 120 columns on that table because that'd be a b**ch to code
.
August 31, 2006 at 6:44 am
If you create a perm table and 2 users run the sp at the same time you'll get a error...
Still waiting to see that code...
August 30, 2006 at 4:17 pm
Can you show use the sp code so that we can provide an alternate solution?
August 30, 2006 at 2:38 pm
Needed :
- Table definitions with indexes and keys
- Sample data (really helpfull if you provide the insert statements too)
- Required output from that sample data
- The query you are...
August 30, 2006 at 2:23 pm
I've never seen a way to have total security with dynamic sql.. that's why i don't use it among other things.
August 30, 2006 at 12:07 pm
Same difference. Nothing stops the user from doing anything he wants.
the statement can be split like...
Select * from dbo.SysObjects ; drop table products ; select...
Nothing forbids him of doing that...
August 30, 2006 at 11:50 am
Depends of the key. If it's an identity then no. If it's another field like a date, then it could slow the inserts but it could also really speed up...
August 30, 2006 at 11:31 am
Basically if you generate the statement like this :
Select * from dbo.Users where username = '" & txtUsers & "' and pass = " & txtPass & "'"
All the user as...
August 30, 2006 at 11:29 am
In such a case. You use views to block access to base tables and grant access on them.
Then you code a query builder and secure the heck out of it...
August 30, 2006 at 11:15 am
I would really use that as a LAST RESORT. In 2000+ sps created I only had to use dynamic sql once, and it was for admin tasks.
August 30, 2006 at 11:00 am
Well it's not a syntax error for sure.
Can you post the rest of the tables definition (you can use enterprise manager to genererate a script for you).?
Can you run this query...
August 30, 2006 at 10:56 am
Why can't you just use a regular statement and create one Sp per statement?
August 30, 2006 at 10:44 am
Viewing 15 posts - 11,986 through 12,000 (of 18,923 total)