Forum Replies Created

Viewing 15 posts - 2,671 through 2,685 (of 13,462 total)

  • RE: Obtaining a comma delimited list for each group in the output of a Group By query

    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...

  • RE: Prohibit UNION queries?

    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...

  • RE: Process Monitor Program_Name question

    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...

  • RE: sp_who reports all processes running in master database

    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;...

  • RE: calculate tax

    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...

  • RE: insert twice seems to pick up new id

    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...

  • RE: Stored Procedure drop table

    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...

  • RE: How to artificially fragment an index ?

    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...

  • RE: permission script

    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...

  • RE: How to artificially fragment an index ?

    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...

  • RE: OUTER APPLY

    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...

  • RE: SQL rollback issues keep occurring due to lack of drive space

    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...

  • RE: Base-Lining info to compare before and after SPs Performance Tuning modifications ?

    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...

  • RE: Update statistics job error

    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,...

  • RE: SUM of COUNT

    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'...

Viewing 15 posts - 2,671 through 2,685 (of 13,462 total)