Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Programming
»
Powershell
»
Inserting into table with Powershell
14 posts, Page 2 of 2
««
1
2
Inserting into table with Powershell
Rate Topic
Display Mode
Topic Options
Author
Message
ALZDBA
ALZDBA
Posted Thursday, December 06, 2012 8:43 AM
SSCertifiable
Group: General Forum Members
Last Login: 2 days ago @ 2:17 AM
Points: 6,862,
Visits: 8,049
Del Lee (12/6/2012)
Gotcha on the date formatting. I've implemented that, thanks.
Not sure why we are concerned about SQL Injection on this, though. I'm doing a straight INSERT. Care to elaborate?
I just always try to avoid any issues SQL Injection related.
Mainly to avoid
copy/paste behaviour
issues in the spirit of "
That's how our DBA did it, so it must be OK
"
Johan
Jul 13
Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere
-
How to post Performance Problems
-
How to post data/code to get the best help
-
How to prevent a sore throat after hours of presenting ppt ?
"press F1 for solution", "press
shift
+F1 for urgent solution"
Need a bit of Powershell? How about
this
Who am I ?
Sometimes this is me
but
most of the time this is me
Post #1393569
Del Lee
Del Lee
Posted Thursday, December 06, 2012 8:48 AM
SSC Veteran
Group: General Forum Members
Last Login: Yesterday @ 1:24 PM
Points: 235,
Visits: 332
I just always try to avoid any issues SQL Injection related.
Mainly to avoid
copy/paste behaviour
issues in the spirit of "
That's how our DBA did it, so it must be OK
"
I'm certainly interested in preventing SQL Injection, but I'm not really following how there is a danger of SQL Injection from doing a straight INSERT from within a powershell script.
Del Lee
Post #1393574
ALZDBA
ALZDBA
Posted Thursday, December 06, 2012 9:39 AM
SSCertifiable
Group: General Forum Members
Last Login: 2 days ago @ 2:17 AM
Points: 6,862,
Visits: 8,049
Guess what was the first script my win-admin produced using powershell: A nice GUI
A wpf window requesting user input.
Just like I did, he started off with "copy/paste"-ing scripts to assemble the stuff he needed.
That's one of the reasons I try to keep SQL Injection on top of my focus when producing scripts.
Johan
Jul 13
Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere
-
How to post Performance Problems
-
How to post data/code to get the best help
-
How to prevent a sore throat after hours of presenting ppt ?
"press F1 for solution", "press
shift
+F1 for urgent solution"
Need a bit of Powershell? How about
this
Who am I ?
Sometimes this is me
but
most of the time this is me
Post #1393613
Del Lee
Del Lee
Posted Thursday, December 06, 2012 10:09 AM
SSC Veteran
Group: General Forum Members
Last Login: Yesterday @ 1:24 PM
Points: 235,
Visits: 332
Ah, I see. You had a user input screen that ulimately called a powershell script. I'm with ya now.
Del Lee
Post #1393634
« Prev Topic
|
Next Topic »
14 posts, Page 2 of 2
««
1
2
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.