Forum Replies Created

Viewing 15 posts - 9,811 through 9,825 (of 13,460 total)

  • RE: Dynamic SQL that can be accessed from View or table-valued function

    i'd want to see the proc, i's quite possible whatever you are doing does not have to be done with dynamic sql.

    it's possible to create a view that has...

    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 to desktop file when logged as administrator - why ?

    glad i could help!

    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: case statement

    yes you can; the correct syntax is below;

    note i added a suggestion to make it cleaner and easier to read:

    select

    CASE

    WHEN SCE_AYRC = '05/06' AND C.MAV_BEGW IN('36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52')

    THEN '06/07'...

    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: how to strip out all non alpha numeric characters?

    i think this will do what you are after; this leaves 0-9,A-Z,a-z and strips out everything else...commas,punctuation, hi ascii, etc.

    select dbo.StripNonAlphaNumeric(address1) from #addr

    --results

    53240thaveneapt104

    1000sectorwaystapt111ac

    3333summerpointplace

    pobox22000a330042

    5566firststettnlot204aapt2c

    select ascii('a'),ascii('z'),ascii('A'),ascii('Z')

    GO

    CREATE FUNCTION StripNonAlphaNumeric(@OriginalText VARCHAR(8000))

    RETURNS VARCHAR(8000)

    BEGIN...

    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 to desktop file when logged as administrator - why ?

    this is a common security issue. The problem is that when you access any resource OUTSIDE of SQL server, like network shares, local hard drives,sp_OA type functions etc, it doesn't...

    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: Mapping Sybase tables for use in lookup function and end table

    mikelordi2 (3/23/2010)


    We are int he process of implementing a new procedure whereby we take client flat files, perform transformations on the data using both derived functions as well as reference...

    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: Utilize SSC forum/posts

    for me,trolling through the forums here on SSC, i literally copy and paste every example that interests me into a SSMS window and run it.

    that's why everyone encourages(demands?) 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: Ho to retrieve column aliases for a view ?

    srinath.chai (3/17/2010)


    Hi Guys,

    I got the similar requirement but I am struggling to complete it

    if you have found the solutions can you please share with me

    Thanks in advance

    Regards,

    ~Sri

    the devil is in...

    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: Transferring Database Diagrams

    andrew in my sql 2008 db, if i create a diagram, then a single row is created in the table dbo.sysdiagrams.

    select * from dbo.sysdiagrams

    name ...

    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: extract numeric part from string ..lenght f string is varrying ..

    you can do it with a tally table as well;

    for example the function I'm pasting below will strip out everything except chars in my specific range of ascii characters:

    --ascii...

    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: Reverse Engineering a Server Side Trace

    Thank you for the salute Jason and Thanks for identifying the fix, Chris;

    Something that might escape some folks is did you know that C2 auditing is just another version...

    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: Counting multiple columns in one table/record

    i think you want something like this, but the key is which column has the "status", and it's data type:

    i assummed a string field, but you'll get the idea once...

    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: Object tampering within SQL Server 2008

    duplicate post.

    continue reading here:

    http://www.sqlservercentral.com/Forums/Topic887248-391-1.aspx#bm887384

    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: Object tampering within SQL Server 2008

    duplicate post.

    continue reading here:

    http://www.sqlservercentral.com/Forums/Topic887248-391-1.aspx#bm887384

    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: Unable to return dataset fields?

    with stored procs, it's a best practice to add SET NOCOUNT ON as the first line of the proc;

    this prevents other applications from thinking subsets or commands like (x...

    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 - 9,811 through 9,825 (of 13,460 total)