Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: db999
  • Order by date
  1. db999

    Trying to export a query to a text file

    does the bcp command work if you run it direct from the command shell? There could be a problem with your bcp application.
  2. db999

    Trying to export a query to a text file

    The following bcp example is from BOL bcp "SELECT au_fname, au_lname FROM pubs..authors ORDER BY au_lname" queryout Authors.txt -c -Sservername -Usa -Ppassword The above example works fine for me both through the command shell and when I wrap it in a stored procedure and use your...
  3. db999

    problem with field size

    There are many ways to insert to a text field. I would probably use ADO/VB to update the field passing the text from the file to a stored procedure variable. If you want to do the import through SQL then you might want to use BULK INSERT or Data Transformation Services (DTS). The options depend...
  4. db999

    problem with field size

    Why do you think the field is only 1024 bytes? Have you checked you query analyser Maximum Characters per column setting (Tools:Options:Results). This may be restricting the number of characters you are returning and can view.
  5. db999

    Half hour incremental report Stored procedure

    Is this what you need? SELECT count(datefld) TotalCol, datepart(hh, datefld) HourCol, datepart(n, datefld) /30 MinCol FROM tablename GROUP BY datepart(hh, datefld), datepart(n, datefld) /30 ORDER BY datepart(hh, datefld), datepart(n, datefld) /30
  6. db999

    is there an sp_ that can show me a how a table is defined?

    sp_help <tablename> should give you information about table
  7. db999

    Creating DSN in code - problem

    MDA, Sorry I never did get the code to work. I ended up using trusted connections. When running the SQLConfigDataSource() function you can use the SQLInstallerError() function to get the reason why the SQLConfigDataSource() failed. See following link for details...
  8. db999

    How can I access data from the command-line?

    Hi Stefan One way to run a VB App from the command shell and return values to the same command shell is to create a ActiveX DLL and use VBScript create an instance of it. You can run the VBScript from the command line using CScript. Check out...
  9. db999

    Creating DSN in code - problem

    Hi I am trying to create a SQL Server DSN using code. I want to create the DSN for a specified server, database, username and password. I can create a DSN using SQLConfigDataSource without specifying a username and password however when I do specify a username and password the...

Part and Inventory Search

Back
Top