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 strongm 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: *

  1. lemosley01

    VarChar Length>8000

    Terry, Out of curiosity, is there a maximum statement length for select, inserts, etc?
  2. lemosley01

    VarChar Length>8000

    Thanks Terry. I've read that before but glossed right over the fact the BOL says they cannot be used as variables. Guess the day hasn't been a waste. Lawrence M.
  3. lemosley01

    SQL Server Database(s) shifting strategy !

    You can't do a full backup of a database after detaching it. You would need to do the backup of the database first, then detach it. Once detached, the database is no longer available and all you can do with it is backup that actual files the comprise the database. Rest of that seems fine, but...
  4. lemosley01

    See Whether A Table Exists Or Not

    Check for the table using IF EXISTS as in: if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME='Categories' and TABLE_SCHEMA='dbo' ) [DROP STATEMENTS HERE] ELSE [do other stuff]
  5. lemosley01

    VarChar Length>8000

    See the text an ntext data types in SQL Books Online.
  6. lemosley01

    DSN error

    Try reapplying or upgrading MDAC and make sure you are logged in as an Administrator. If it's access you could upgrade to the latest JET release (SP3 plus a security rollup I believe) Perhaps you would be better served by posting your question in the ODBC forum
  7. lemosley01

    Round when a Truncate is needed

    How about using cast/convert to convert to an integer.
  8. lemosley01

    Just cant do anything with this.

    Check the properties of Enterprise Manager (Tools | Options | Advanced) and see open console tree to last note option is on. This option exists nder SQL 2K, and I think under 7.0 EM as well
  9. lemosley01

    Groups VS Individual NT accounts

    When the users connect you will see their NT account names, not the group name. If you want to see it in action for yourself, use SYSTEM_USER. Connect to the server as one of these users and run the following from query analyzer select system_user
  10. lemosley01

    ORDER BY on ntext works on some SQL server installs?!?

    BTW - showing the plan or even trying to display the estimated execution plan does not work either. When I try to use display estimated plan it returns the 'cannot use ntext...in order by clause' error. How exactly are you getting an execution plan against a statement that the server is...
  11. lemosley01

    ORDER BY on ntext works on some SQL server installs?!?

    Ran this against an Enterprise Edition installation that has SP2+Latest security rollup applied, and it failed (as expected). Maybe there was a bug in a patch that you have applied that was fixed, it wouldn't be the first time, but I kind of doubt it. Can you post the table DDL? Perhaps...
  12. lemosley01

    Network Backup Problem

    Maybe a sniffer will show something. Sounds like the target server is being shutdown or you have some network problems that are causing connection-loss. Have you tried backing up to a local drive, then performing a copy of this file (so you have it in two places)? That's probably safer anyhow...
  13. lemosley01

    ORDER BY on ntext works on some SQL server installs?!?

    What error does it return? I can't see how the execution plan should be different for different versions. If it is not supposed to work, then it shouldn't matter what the execution plan says. Are you *sure* that the field it does work on is an ntext?
  14. lemosley01

    Microsoft OLEDB provider for odbc drivers, specified driver could not

    System error 5 is 'access is denied' Whatever id is trying to load the driver doesn't have permission to do so. Check the securities on your system (maybe try auditing and see what that turns up). Since this is a web-server, I would be hesitant to start granting the id administrator access.
  15. lemosley01

    Hi I am doing a project using V

    You can have only one primary key per table, so I assume you are talking about a composite key. If the StoreID and Store No. taken together are unique, then you could use these. If either column will always contain unique values, then just set that column as the primary key. If both column will...
  16. lemosley01

    Owner name has stopped views from working

    pwills, 1) I am of the opinion that everything should be owned by dbo. It makes moving objects easier as you have found, and it makes permissions assignments much simpler because you don't have to worry about ownership chains. 2) use sp_changeobjectowner 3) You could script out the views and...
  17. lemosley01

    Synchronizing data from SQL 2000 with MySQL

    You might be able to use SQL Server's replication facilities to push the data to MySQL. If MySQL is the source, then you could create a DTS package to import the data and schedule it to run periodically. Another option is to use linked servers (see linked servers in SQL Books Online).
  18. lemosley01

    DTS and Microsoft Access

    Are the access drivers installed on the machine you are working from? Maybe you need to update the Jet Drivers to the latest version? Maybe the access database it is pointing to is damaged and needs to be repaired.
  19. lemosley01

    ASP.NET custom error problem

    IIS in .NET server by default is setup so that it will only serve static pages (no active content). You will need to enable the ASP extension in the IIS manager on the server (I'm assuming your redirect is to a separate .NET Server). That's the only suggestion I really have. Hope it works.
  20. lemosley01

    Virtual Servers

    Virtual servers apply only in the context of a server cluster. You could *probably* set them up using VB, but it would be a matter of modifying/creating registry entries, etc. What are you trying to do?

Part and Inventory Search

Back
Top