Forum Replies Created

Viewing 15 posts - 10,306 through 10,320 (of 15,381 total)

  • RE: Grant Permission to a table with restriction to data

    Jan Sorenson (10/19/2012)


    Is it possible to grant access to specific columns in a table with restriction to the data with a where clause? Similar to building a view but...

  • RE: User Defined Function

    Here is another way to do it if you have a Tally table. You could insert the output of this into a permanent table and assign a RowNum using ROW_NUMBER...

  • RE: Use the Table valued function in the query

    deepeshdhake (10/19/2012)


    Hello,

    Using the table EmpHistory, it is not satisfying all the rules. So I want to use this function as it satisfies all the rules. This is what I want:

    I...

  • RE: User Defined Function

    vs.satheesh (10/19/2012)


    Hi All

    In My project one table my old employees using following format id generation.Hoe to generate this sequence...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (10/19/2012)


    Sean Lange (10/19/2012)


    Is it just me or is the entire SSC site slow today? For me I can barely navigate anywhere. Each click is taking a couple minutes....

  • RE: Exact multiple items

    tantcu (10/19/2012)


    I have limited knowledge about SQL. Could you guys more specific or give me like a sample to apply?

    BOL is the best place for this kind of stuff. http://msdn.microsoft.com/en-us/library/bb510489.aspx

    If...

  • RE: Are the posted questions getting worse?

    Is it just me or is the entire SSC site slow today? For me I can barely navigate anywhere. Each click is taking a couple minutes. No other sites are...

  • RE: SQL Question

    rocky_498 (10/19/2012)


    Some body ask this question during interview. I didn't the answer i would like to know if someone give me the answer of

    this simple or tuff question.

    Q) What...

  • RE: Exact multiple items

    You might look into table parameters too. This seems like a good candidate for one.

  • RE: To sharpen the Query Logic

    What you are describing is a process not an event. There isn't a book you can read and when you finish you are now able to write efficient queries. One...

  • RE: Please help with SQL insert

    ericb1 (10/19/2012)


    Sorry, thanks for the help. The first query is from a custom SQL database, the results of the query give me this:

    reviewer accountid accounttypeid...

  • RE: How can I create registration and login in SQL server 2008?

    valentina1983 (10/19/2012)


    Hey guys ,

    I'm new here and I really need your help.

    I need to write a script that creates registration (for first visit to the website) and then login...

  • RE: ?? on concat two fields??

    jbalbo (10/19/2012)


    Thanks... fixed it. dumb on my part... thanks

    I don't know whats going on with the nolicks, I inherited this.

    to be honest, newer at this and not sure what it...

  • RE: Split without delimiter based on position

    This looked like an extremely odd situation but a fun challenge. It can in fact be accomplished without loops. You have to combine a couple of techniques, both the delimited...

  • RE: Split without delimiter based on position

    yuvipoy (10/19/2012)


    Hi

    I am getting the error as

    declare @pi_input varchar(max)

    declare @query varchar(max)

    select @pi_input ='0123456'

    SET @query = N'Select '+'SUBSTRING(@Input,'+convert(varchar,0) +',1)'

    print @query

    exec (@query)

    Select SUBSTRING(@Input,0,1)

    Msg 137, Level 15, State...

Viewing 15 posts - 10,306 through 10,320 (of 15,381 total)