Viewing 15 posts - 6,121 through 6,135 (of 13,460 total)
yep you are missing the #1 fix to SQL injection: using parameters instead.
generally, you never want to change users data. using it for comparisons, maybe...but even then, you want to...
Lowell
January 9, 2012 at 11:56 am
this was interesting...
not sure if you want to get the data as rows or columns, you might need to pivot this data if you need it as columns, see what...
Lowell
January 9, 2012 at 10:14 am
ugg; except for building a presentation string for binary,
i always leave my values as integers for data manipulation...very easy to test each column for whatever it represents them.
any chance...
Lowell
January 9, 2012 at 9:43 am
does a SKU have a standard length, like 6 characters?
do you have a lookup table of all skus so you could look up whether it is valid before or after...
Lowell
January 6, 2012 at 11:25 am
well, first, a .cmd file is just the renamed verison of a .bat file...something you might typically call via command line / xp_CmdShell (if that is even enabled)
that .cmd...
Lowell
January 6, 2012 at 7:21 am
there's another function for the UTC date you cvan use: GETUTCDATE()
select (UTCOccurrenceDateTime >= DATEADD(day, DATEDIFF(day, 0, GETUTCDATE()), 0))
Lowell
January 5, 2012 at 10:56 am
i'm guessing someone may have installed the full version of Visual Studio, which would supercede the BIDS version...could that be true?
in that case, there's nothing to do...just open visual studio...
Lowell
January 5, 2012 at 10:00 am
i tried to help and started scripting, but you simply didn't provide enough data.
you originally posted sample data with two columns...i had to dig thru your post to figure out...
Lowell
January 5, 2012 at 7:37 am
try this: maybe the login is a sysadmin:
you'll need to change the name of the login to your specific login/sql user in question:
EXECUTE AS LOGIN='ThatSpecificSQLUser';
--the auditing snippet below...
Lowell
January 5, 2012 at 6:31 am
Dave Ballantyne (1/4/2012)
Take a look at the plan and the active processes to see if you...
Lowell
January 5, 2012 at 4:10 am
sysobjects :
you can either use SCHEMA_NAME(sys.objects.
object_id) from sys.objects
OR
JOIN sys.schemas ON sys.objects.schema_id = sys.schemas.schema_id)
Lowell
January 4, 2012 at 2:24 pm
DavidL (1/4/2012)
Lowell
January 4, 2012 at 2:22 pm
via TSQL, it's one of those really difficult things to do on your own.
Like Gus said, all the data is out there in the sys.tables/sys.columns metadata views, but it's up...
Lowell
January 4, 2012 at 2:07 pm
something like this should do it in a single statement;
see if this does what you would like:
With FNames AS (
select distinct firstname from Customer),
LNames AS (
select distinct lastname from Customer),
Randomized...
Lowell
January 4, 2012 at 1:40 pm
David, i think it has to do with CHAR(10) vs CHAR(13) + CHAR(10) as the line terminator.
SSMS will show you the definition the "right" way, regarless of the terminator, but...
Lowell
January 4, 2012 at 1:04 pm
Viewing 15 posts - 6,121 through 6,135 (of 13,460 total)