Forum Replies Created

Viewing 15 posts - 5,296 through 5,310 (of 13,465 total)

  • RE: How to check if I have VIEW DEFINITION?

    i'm getting closer:

    this query shows me my permissions, as well as the permissions i directly inherit from roles i've been assigned;

    it does not handle any recursive role-within-a-role yet;

    i'm thinking that's...

  • RE: How to check if I have VIEW DEFINITION?

    ok a follow up to my own question:

    in SQL2005,

    SELECT * FROM fn_my_permissions(NULL,'DATABASE') for my example above only shows connect permission, but on SQL2008 and above, it shows the "VIEW...

  • RE: Invoice_Dates

    you'll need to show the exact code you are using.

    with that, we can show you how to join against a calendar table to get a range of dates.

    based on my...

  • RE: Invoice_Dates

    you should have continued your question in the original thread.

    this logic :

    SELECT RIGHT ('0000'+Store#,4)

    appends 4 preceeding zeros to the store number, then grabs teh right 4 characters...so store '1'...

  • RE: So Management Studio Just Closed

    not that i'm aware of as far as the log being more dedicated to SSMS.

    did you manually look in the backup folder?

    C:\Users\yourusername\Documents\SQL Server Management Studio\Backup Files\Solution1

    and see if anything was...

  • RE: So Management Studio Just Closed

    Rob to help alleviate some of that headache in the future, grab the SSIS addin here:

    http://www.ssmstoolspack.com/

    one of the things it has is that it automatically keeps a history of every...

  • RE: Query between objects / servers in SMS 2008

    could it be based on an openrowset command??

    --database name required

    SELECT *

    FROM OPENROWSET( 'SQLNCLI',

    ...

  • RE: Permission to Create, Modify & Delete Views only.

    As far As i know, SQL Server doesn't have the specific granularity to restrict creation to only views;

    giving someone ALTER permissions(like via GRANT ALTER ON schema or the role ddl_admin)...

  • RE: Convert SQL Server query to Oracle query

    I'mn out of practice, but it requires a correlated sub query, and what seems like a wierd format;

    this is untested, but it's kind of like this, which looks weird (from...

  • RE: Invoice

    based on your proposed format, [storenumber][ddmmy], you are assuming a store can only have one invoice a day? what if they want to have two?

    3935 (6/27/2012)


    Hey Guys,

    How can i unique...

  • RE: whether commited transaction will get rollback again

    Reddy Ksr (6/27/2012)


    i think in sql server 2008 we can rollback the committed transaction.

    but in server 2005 we can't.

    can anyone suggest me what will be reason.

    no. a commited transaction is...

  • RE: select nth row of a concatenated query

    also, to get the nth value, i'd add row number to the inner query :

    declare @n int

    SET @n = 4

    SELECT sq.test

    FROM (

    SELECT row_number() over (order by name) As RW,

    ...

  • RE: QuickBooks to SQL Server

    i had used the quickbooks driver from http://www.rssbus.com/ado/quickbooks/ so i could connect via a .NET application;

    They had a decent amount of examples, and it was pretty easy to...

  • RE: Export pipe delimited data without using dts or ssis

    Jeff Moden (6/26/2012)


    Lowell (6/26/2012)


    i believe your options are to use bcp, CLR or powershell

    bcp + TSQL isgoing to require opening up xp_cmdShell.

    BWAA-HAAA!!!! I use xp_CmdShell to run PowerShell...

  • RE: Export pipe delimited data without using dts or ssis

    i believe your options are to use bcp, CLR or powershell

    bcp + TSQL isgoing to require opening up xp_cmdShell.

    EXECUTE master.dbo.xp_cmdshell 'bcp "SELECT object_name(object_id) As TbLName,name as ColName FROM SandBox.sys.columns...

Viewing 15 posts - 5,296 through 5,310 (of 13,465 total)