Forum Replies Created

Viewing 15 posts - 121 through 135 (of 168 total)

  • RE: Get Account Number using MIN - Multiple Users on System

    Solution seems to be:

    SET ROWCOUNT 1

    SELECT A.RiskId

    FROM RiskQueue A

    INNER JOIN _FinalFlat B

    ON A.AcctNo = B.AcctNo

    WHERE B.Tagged = 0

    ORDER BY A.RiskId

     

    Gets away from using the temp table and its a lot...

  • RE: Get Account Number using MIN - Multiple Users on System

    This concept may solve my problem.  This query works:

    SELECT TOP 1 A.RiskId

    FROM RiskQueue A

    INNER JOIN _FinalFlat B

    ON A.AcctNo = B.AcctNo

    WHERE B.Tagged = 0

    ORDER BY A.RiskId

    BUT .... I get an error...

  • RE: ROLLBACK question

    Thanks for the solutions.  Since there are two different solutions, the obvious question is which best fits my concern.

    I'm still a little confused on which fits my situation the best. ...

  • RE: ROLLBACK question

    I'm not sure I understand.  Lets say this is my stored procedure.  If I want this all to run before updating the database, what do I need to do.  Thanks!

    INSERT...

  • RE: Transpose in SQL

    I'm having problems posting a jpg, go figure.  I'll just type it in.

    There are lots more columns, I'll just do a few.  Top row is field name.

    BEFORE:

  • RE: Query for Email Attachments

    This is getting closer, but only picks up the last record from the table.  If there were 5 rows (file names) it only sends the last one???

    DECLARE @@AttachMe varchar(5000)

    SELECT @@AttachMe =...

  • RE: Read email using SQL

    I use something called Email2DB  ...  I'm pretty happy with it although have issues every now and then.  About a $350 piece of software. 

  • RE: sp_addlinkedsrvlogin text file

    Why am I jumping through these hoops? 

    - I know how to manully use DTS but never figured out how to automate it.

    - BULK INSERT does not move text data in...

  • RE: sp_addlinkedsrvlogin text file

    Here is my solution.  Probably ugly but it works.  I'm using OSQL and xp_cmdshell.

    CREATE PROCEDURE

    p_TryThis

    AS

    DECLARE @@DOSCommand varchar(150)

    SET @@DOSCommand = 'c:\rci.bat'

    TRUNCATE TABLE _TestIt

    EXEC sp_dropserver 'txtsrv', 'droplogins'

    --Create a linked server

    EXEC sp_addlinkedserver txtsrv,...

  • RE: sp_addlinkedsrvlogin text file

    EXEC ('INSERT INTO _TestIt (rawdata) SELECTcolumnname FROM txtsrv...[temp#txt]') 

    Hack figures another thing out, new problem now.  All I needed was () and not this can be put in a stored procedure ...

  • RE: sp_addlinkedsrvlogin text file

    Hack boy is only good for one thing a year.  I created a table, added two fields.  One an identity called SEQ and another called COLUMNNAME.

    In query analyzer ran:

    INSERT INTO...

  • RE: sp_addlinkedsrvlogin text file

    WOW  ...  hack boy here figured it out.  When a linked server is created it shows in the security area. 

    Went to Properties, Security, "be made without security"

     

  • RE: sp_addlinkedsrvlogin text file

    I'm still getting this message.  Even ran it from the master database in care I didn't have permissions.  I'm wondering if I need to set something up with 'Microsoft.Jet.OLEDB?

    Error:

    Server: Msg...

  • RE: sp_addlinkedsrvlogin text file

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=14488

     

    Looks like I'm not the only one who has a problem with this.  Does anyone use sp_addlinkedsrvlogin?  I'm wondering if it works at all, have tried just about everything. ...

  • RE: sp_addlinkedsrvlogin text file

    I'm not very good at SQL, so DTS is out of the question.  Well I've never figured out how to make a DTS stored procedure.  DTS works differently right.

    Actually I'm...

  • Viewing 15 posts - 121 through 135 (of 168 total)