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

  1. RickCole

    Triggers

    Yep the insert statement will also be rolled back. Rick.
  2. RickCole

    store procedure naming

    If the stored procedure is prefixed with sp and you don't specify the database in the execute command the server will first search the master database. If it's not found there it will then search your current connection database. I would say it's good practice to have all user databases SP's...
  3. RickCole

    Start a SQL SERVER Agent Job From VB

    You could write your parameter to a table and let your job pick it up from there. Rick.
  4. RickCole

    SQL Server 65.

    Make sure the 6.5 server is linked to your 2000 server. The syntax for the sql is: select * from 65server.65database.dbo.65table Assuming dbo is the owner of the 6.5 table in this example. Rick.
  5. RickCole

    system created stored procedures! Urgent!

    Sorry but I'm not familiar with scptsfr.exe. And you can not create scripts dynamically from Enterprise Manager to CREATE and DROP databases. All I can offer you is that if you look in Books Online under the topic "CREATE DATABASE (T-SQL)" AND "DROP DATABASE (T-SQL)". The...
  6. RickCole

    system created stored procedures! Urgent!

    I assume you have a script which creates all your tables/constraints/stored procedures etc?? You can add into this script the DROP DATABASE and CREATE DATABASE commands. Is this what your after or have I missed the point. Rick.
  7. RickCole

    Users and databases

    Only my personal opinion here but I hate it where users all come into SQL with the same username. I do have one server, which uses some third party software and works in this manner. I have had problems before where I needed to know who was running one particular process and couldn't find out...
  8. RickCole

    system created stored procedures! Urgent!

    If your talking about the system stored procedures which begin with dt?? If so these are created when you first try to view/create/edit database diagrams from within Erntrprise Manager. A dtproperties system table is also created. Nothing to worry about. Rick.
  9. RickCole

    Users and databases

    In Enterprise Manager navigate to Management then Current Activity and finally Process Info. Another way is by running the stored procedures sp_who or sp_who2 from a Query Analyser window. Also you could run the query: select * from master..sysprocesses Rick.
  10. RickCole

    Problem creating Foreign Keys...

    Unfortunately the method Jitter describes does not exist in SQL 7.0. One way is using the ALTER TABLE T-SQL command and adding a FOREIGN KEY constraint from there. The other method is to create a database diagram add the required tables and then you can use drag and drop on the required...
  11. RickCole

    Start a SQL SERVER Agent Job From VB

    You could issue the command to execute the msdb stored procdure sp_start_job. Rick.
  12. RickCole

    master, model, msdb?

    Have a look at the following link: http://www.sql-server-performance.com/dd_creating_logins.asp This details one way of doing what is required. Rick.
  13. RickCole

    master, model, msdb?

    Please note if you restore master from another server , you will loose references to any current databases you have on your new server. In general a restore of master is only required if it is corrupt or you are transferring over onto a brand new install. Normal practice when just restoring...
  14. RickCole

    restoring old Databases

    Yes all you need is those files for each database you need to restore. The databases will be exactly as there were so your diagarms will also be included. sp_detach_db deletes the database references from the master database but does not delete the physical mdf or ldf files. Rick.
  15. RickCole

    problems one strating SQLserver7.0

    Have a look at FAQ in this section of the forum and then the following topic "What are SQL Books Online & Where Can I Find Them?" in section 10. Rick.
  16. RickCole

    boolean type

    The equivalent in SQL Server is the data type 'bit' which can hold values of 0,1 or NUll. Rick.
  17. RickCole

    restoring old Databases

    Oh the sp_attach_db and sp_detach_db stored procedures are held in the master database. This is a Northwind database example. Where the physical files Northwind_Data.MDF and LDF are currently held on the C: drive. sp_attach_db @dbname = 'Northwind'...
  18. RickCole

    restoring old Databases

    Can you still access your old databases via a version of Enterprise manager on your old HDD?? Rick.
  19. RickCole

    problems one strating SQLserver7.0

    If you have both SQL Server 6.5 and 7.0 installed on your server then only one instance can be active at any one time. It sounds like you server is currently running the 6.5 version. To switch from SQL Server 6.x to SQL Server 7.0 On the Start menu, point to Programs/Microsoft SQL Server -...
  20. RickCole

    master, model, msdb?

    master database: No need to restore. model database. Only need to restore if you have objects in the original and you want them to be included in any new database you create. i.e. The model database is used as a template for any new databases created. msdb database. Only need to restore if...

Part and Inventory Search

Back
Top