Forum Replies Created

Viewing 15 posts - 10,396 through 10,410 (of 13,460 total)

  • RE: Security access within schemas

    here's an example I hope helps you visualize it:

    you want to try to give users only the rights they need.

    use [SandBox]

    --grant select/insert/update, but Not Delete to a specific table

    CREATE ROLE...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL function for convert 99999 to 99,999.000

    i've got this saved in my snippets, but it would add only two decimal places, not three...does that matter to you?

    results

    @test-2 formatted

    7265342 ...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: XP_CMDSHELL access denied when accessing shared location

    Ranga it doesn't matter which account YOU logged in with.

    when SQL server tries to access anything outside of the SQL instance(xp_cmdshell, files/folders/, network shares, anything outside of it's own databases)

    it...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Scripting help - Need a query to find filenames and filepaths under a certain directory

    tan110 (10/23/2009)


    Scripting help - Need a query to find filenames and filepaths under a certain directory.

    I need the results to be something like this:

    filepath ...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL 2005 EMAIL DATABASE SET UP

    outgoing mail tick box for SSL required is ticked and using my password and user name.

    i don't think this should be checked...that means use https: or whatever the equivilent is...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Ctrl + F or Ctrl + H is not working

    change your screen resolution;

    I've had that happen to me in visual studio, where the find and replace comes up as an undocked window, and gets tossed to a point that...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: split a long string column into separate columns

    it's actually usually used for parsing up a Server.Database.Schema.Tablename object, but like you identified, works perfect for IP addresses as well; anything that is getting chopped up by periods; I've...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: split a long string column into separate columns

    if there are exactly 3 decimals/4 parts in your string, you can use the built in function PARSENAME.

    otherwise, it's the same idea, just more involved by using CHARINDEX and SUBSTRING

    declare...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Password check in/check out functionality within SQL SERVER.

    why not use a windows group that has admin rights? you give them a network login, set the password to expire in three days or whatever, and you are done;

    they...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Parsing sections of a string

    ok this was a kewl project for me;

    to solve it, i used a function similar to CHARINDEX, but i used the AT() included below...it returns the Nth occurrance of a...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Parsing sections of a string

    frank what we are looking for is the specific rule so we can help you;

    for example is this statment true:

    in the data sample like this:

    '\\axis552\ABCS$\File_Provs\Anderson_Company\837\X0102022005009253218.TXT'

    '\\axis552\ABCS$\File_Provs\Franks_Company\9422\X0102022005009253218.TXT'

    '\\axis552\ABCS$\File_ProvsBAK\Lowells_Company\subdir\X0102022005009253218.TXT'

    "from right to left,one subdirectory exists...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Select Count as Column

    i think this is what you are looking for; you need to use a CASE to get your "conditional" count that you were trying to do in the internal WHERE...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Does the standard version supports the filestream?

    the command you pasted is just one piece (actually the last step) of enabling FILESTREAM on 2008:

    it's got a syntax error as well; it should be thisL

    EXEC sp_configure filestream_access_level, 2

    RECONFIGURE

    http://msdn.microsoft.com/en-us/library/cc645923.aspx

    Before...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Does the standard version supports the filestream?

    not true; SQL 2008 Express supports filestream:

    Microsoft (10/20/2009)


    http://msdn.microsoft.com/en-us/library/cc949109.aspx

    SQL Server Express

    SQL Server Express supports FILESTREAM. The 4-GB database size limit does not include the FILESTREAM data container.

    However, if FILESTREAM data is...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Get index scan on zip code radius query - not sure why.. ! ?

    Elliot kick *** giving us the sample data to test with!

    don't know how close it is to the original posters, but i got similar results whether i choose t1.ZipCode or...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 10,396 through 10,410 (of 13,460 total)