Viewing 15 posts - 2,671 through 2,685 (of 13,462 total)
here's a testable solution you can adapt to your real data;
this gets each table, and a comma delimited list of column names.
use this as a model, and change it to...
January 10, 2014 at 2:31 pm
i'd like to see where you got a statistic or article stating UNION was a vector for hackers; might be interesting reading.
I'm more under the impression that SQL injection is...
January 10, 2014 at 10:37 am
I believe there was another recent thread that said scheduled jobs that are executing use "Microsoft SQL Server Management Studio", i believe, which was very misleading, since it's not really...
January 10, 2014 at 6:02 am
as far as i know, every login has access to master and tempdb; but they can hardly see anything that has not been granted permissions to them in those databases;...
January 9, 2014 at 12:52 pm
if this is for a class or homework, we can point you in the right direction;
from experience, your structure is wrong;
individual products or items on the invoice need to have...
January 9, 2014 at 12:14 pm
well, if a given id exists more than once in your tbl_directdebits, it will insert multiple rows.
...from tbl_directdebits where id= @id
does this query return any rows?
SELECT id, count(id)
FROM tbl_directdebits...
January 8, 2014 at 2:03 pm
i don't userstand the logic of dropping it and adding it...why not delete, reseed any identities, and insert into again?
your error is due to the fact that
a stored proc...
January 8, 2014 at 11:48 am
george sibbald (1/8/2014)
why does it matter that other tables are fragmented? what is your script trying to do?can you force the logic flow to pick up your table?
agreed; what...
January 8, 2014 at 11:42 am
yeah, i didn't see a value in it either;
the grant for GRANT VIEW ANY DEFINITION TO AppInsightUser
lets the login see the metadata without having to be a user int he...
January 8, 2014 at 11:30 am
SQL Guy 1 (1/8/2014)
OK, let's assume that I am not in production. How can I increase fragmentation without modifying the data?
You can't.
fragmentation occurs, for example, when data is...
January 8, 2014 at 9:25 am
from the page you posted, someone suggested this code
SELECT *
FROM
[dbo].bookPageFromAddress(@address) addresses
outer apply [dbo].[imageFileFromBookPage](addresses.Book, addresses.Page) foo
you said it didn't work, but didn't say why, or whether you...
January 7, 2014 at 11:22 am
i think the key on the error is Level 19 that's a really high error number; I'd bet the lock is waiting on the database growing and getting more space...
January 7, 2014 at 9:37 am
It seems like most of the time i'm tuning, i have a specific query plan , either from a query, a procedure, or from the cache when i checking top...
January 7, 2014 at 9:30 am
just had the same issue on a database hosted on a web server.
the database was limited to 250 meg, and not allowed to auto grow.
check the properties of the database,...
January 7, 2014 at 7:26 am
here's my first guess on what you are after...some SUM(CASE statements to get your subtotals:
SELECT SUM(CASE
WHEN prd_cd='1'...
January 6, 2014 at 11:19 am
Viewing 15 posts - 2,671 through 2,685 (of 13,462 total)