Forum Replies Created

Viewing 15 posts - 8,326 through 8,340 (of 26,490 total)

  • RE: help with inventory of database logins and permissions

    KoldCoffee (3/25/2013)


    I ran this script to get a list of all database logins, but it does not give the same results as when I expand Database-> Security-> Logins.

    SELECT name, type_desc...

  • RE: Alpha Numeric number Generation

    When EZ9999 incrments to E0A001, what happens as E0A999?

  • RE: Lock only one row in update (lock a row)

    Getting there, but still don't know how this table is being used, what column is being used to provide info for the transaction.

    Why don't you try explaining the entire process.

  • RE: Concatenation help

    I prefer his:

    create table #TestData (

    LabName varchar(32),

    LabNo int

    );

    insert into #TestData

    VALUES

    ('MICROSOFT VISUAL STUDIO .NET',101)

    ...

  • RE: Lock only one row in update (lock a row)

    Nope, still no actual explaination as to how these parameters are used or updated. Just keep repeating what it is you want to do even if it is wrong.

  • RE: Lock only one row in update (lock a row)

    abitguru (3/25/2013)


    Lynn Pettis (3/25/2013)


    Actually, I don't think you do. Instead of working to keep others from reading/updating a particular parameter row (again, not sure how you are using this),...

  • RE: query other databases from the information in another database

    pjuster (3/25/2013)


    Hi,

    I have a database called databaseA with a table called, otherdbs with two columns

    server databasename

    server1 parts

    server2 parts

    I would like a query that...

  • RE: Lock only one row in update (lock a row)

    Actually, I don't think you do. Instead of working to keep others from reading/updating a particular parameter row (again, not sure how you are using this), you should be...

  • RE: Importing 00:00 into Table

    Sean Lange (3/25/2013)


    DarthBurrito (3/25/2013)


    Sean Lange (3/25/2013)


    Since you are trying to record the amount of TIME something took why not use the TIME datatype?

    declare @Time time = '09:26'

    select @Time

    Now you have...

  • RE: Remove characters after last slash in string

    raym85 (3/25/2013)


    if you always know the len of the extnetion this should work as well without being so taxing.

    declare @string varchar (100)

    set @string = 'x:\folder1\folder2\folder3\test.txt'

    select SUBSTRING(@string,1, LEN(@string)-8)

    Probably not a...

  • RE: Lock only one row in update (lock a row)

    Not exactly sure how you are using this table, but you should limit the time that a record is locked to as short a time as possible. Users attempting...

  • RE: Need help with Select statement!!

    kevaburg (3/25/2013)


    Sorry Lynn.....it was aimed at the original poster....

    Hard to tell just from the comment. It is apparent that this was some sort of college project.

  • RE: how to retrieve the data when a comma separated ids are sent as input parameters

    Pulivarthi Sasidhar (3/25/2013)


    CREATE Proc usersbyLocation(@locids varchar(max)=NULL)

    AS

    BEGIN

    Declare @str varchar(max)

    SET @str='SELECTUserID,

    UserForename,

    UserSurname,

    LocationName

    fromtUser JOIN

    tLocation on tUser.locationID=tLocation.LocationID

    Where tLocation.LocationID in ('+@locids+')'

    PRINT @locids

    Exec (@str)

    END

    --Test

    --Exec usersbyLocation '1,2,3,4,5,6'

    Look above, no dynamic sql required.

  • RE: Need help with Select statement!!

    kevaburg (3/25/2013)


    Sorry for saying this but whether it is PL-SQL or T-SQL is somewhat irrelevant......the results you expected are somewhat basic and not particularly taxing. Are you sure this...

  • RE: Assistance in converting INT into date.

    patrick.palmer (3/25/2013)


    The filed has multiple dates in it. The 20050307 was just an example. Now all the dates say 2005-03-07???

    The following was showing you a way to convert a date...

Viewing 15 posts - 8,326 through 8,340 (of 26,490 total)