Forum Replies Created

Viewing 15 posts - 7,591 through 7,605 (of 13,460 total)

  • RE: Text Extract with datestamp from PRINT command

    from TSQL? you can't; what you'd have to do instead is to change the PRINT command to a SELECT; then you can put it in a variable or a table...

  • RE: How do I go from SQL 2008 build 10.0.1600 to build 10.50.1600

    10.0.* is SQL 2008

    10.5.* is SQL 2008R2. a next higher version of SQL; you'd have to either download an express version of R2, or buy , at a minimum, the...

  • RE: Added a Clustered index On ID cloumn but not ordered? Why?

    thinknight (5/10/2011)


    There are many nonclustered index on different columns on same table and also pk is different. Does it effect this situation?

    that's not what you said before...

    you said you added...

  • RE: Added a Clustered index On ID cloumn but not ordered? Why?

    i don't believe the index was added.

    this works fine for me, and orders the results as expected int eh second query:

    CREATE TABLE TestTable(ID INT);

    GO

    INSERT INTO TestTable(ID)

    SELECT 7 UNION ALL

    SELECT 9...

  • RE: Deny all permissions

    debbas88 (5/10/2011)


    I understand a Windows group will act as a login. So once a windows group is created, if I strip it from all server roles, will my application be...

  • RE: No data found error

    oops i thought the issue might be how Oracle is less forgiving than SQL when it comes to conversions from string to DAteTime, but most of what you qare doing...

  • RE: Deny all permissions

    Integrated Security=True in the connection string.: that means that if myDomain\Karen uses your app, THAt is the username that will be used...NOT your test user.

    you need to add a Windows...

  • RE: Deny all permissions

    you still need to create a USER, even for windows logins.

    for example, here's the script to add a windows user, and then tie him to the role we described:

    --do i...

  • RE: Deny all permissions

    debbas88 (5/10/2011)


    Hello again

    I cant use the login created from the above written procedures to access the database unless i make it sysadmin. If I make it sysadmin the login will...

  • RE: Explicit GRANT permission against fixed db roles

    thank you for the more detailed explanation Brian; I'm better informed now. I had assumed something else, and I'm glad you posted this!

  • RE: Join a query to a table

    Howard I think either of these two examples might get you where you want to go:

    see if these get you closer to your goal:

    SELECT

    instz.applicationid,

    instz.instanceid,

    appz.Name

    FROM application_instance instz

    LEFT OUTER JOIN [Application]...

  • RE: Explicit GRANT permission against fixed db roles

    it's actually a very common security setup to have a group with ONLY execute permissions; some applications are designed so that all data is accessed via stored procs, so the...

  • RE: view with 125 columns

    performance can be a big question;

    At least for a start, grab the query portion of the view, and run it in SSMS.

    Look at the execution plan; see if any additional...

  • RE: Which index will get the prority and why?

    I'd also add than if a WHERE statement is included in the command, that is used by the optimizer to decide which index will be used to retrieve the data.

    If...

  • RE: Displaying data for the upcoming 4 quarters

    you'll want to use the DATEADD and DATEDIFF functions;

    here's an example using quarters: this is returning the START, of each of 4 quarters: this quarter, next, two quarters from now,...

Viewing 15 posts - 7,591 through 7,605 (of 13,460 total)