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. mortonsa

    sp_sdidebug

    Hello All, In my organization we have developers that create stored procedures under their windows login. When the proc is ready to go to production, they send it to the DBA group and we change the owner to dbo. Problem: The developers would like to debug some of the stored procedures that...
  2. mortonsa

    Cross Server Join Problem - Login Failure

    Figured it out.... EA3 and EA7 are linked servers. The old sa password had not been changed there yet through Enterprise manager.
  3. mortonsa

    Cross Server Join Problem - Login Failure

    Hello All, I changed my sa password and ever since I have done that I am getting a login failed for user sa when I try to run the following query: SELECT ADJDOCNUMBR AS transid, ORTRXAMT AS original, CURTRXAM AS due, (Select top 1 upload_date from dtp where transid = ADJDOCNUMBR order by...
  4. mortonsa

    Replication Question

    I have a database with 310 tables in it. I need to have these tables replicated to another server. I have been told that it has to be continuous transactional replication. Can anyone suggest the best way to set up my publications? It seems like when I try to set up the publication to do all of...
  5. mortonsa

    Replication and Bandwidth

    I have replication set up as transactional and continuous to run whenever the CPU is idle. What sort of problems has anyone encountered with this?
  6. mortonsa

    Replication and Bandwidth

    Hello All, I was informed that we are going to start replication between the office that I work in and an offsite location. I was asked to research if there are any bandwidth issues in doing this and/or to get recommendations on what kind of bandwidth we need to have. Any help would be...
  7. mortonsa

    Index Recommendations?

    Hello All, I recently started a new job and as I am looking through the tables in the databases we have here I noticed that some of the tables have 30 indexes on them! I don't think there is a need for that many. I'm confused about which ones to get rid of or change though. Here is a sample of...
  8. mortonsa

    Deadlock Issue

    Thank you hmckillop! Your feedback helped me to understand better why this was happening. After reading your post I ended up copying my production tables that this query was using over to my development server (I was not having the same problem on production). That fixed the issue. So, I am...
  9. mortonsa

    Deadlock Issue

    I rewrote the query so now it looks like the syntax below. I verified that I have indexes on my tables as well and I am still getting the same message. I ran sp_lock in a seperate window but nothing is jumping out at me as being wrong. Can anyone please look at my output from sp_lock and let me...
  10. mortonsa

    Deadlock Issue

    Does anyone have any other suggestions?
  11. mortonsa

    Deadlock Issue

    I tried using NOLOCK (see syntax) and I am still getting the error message. SELECT (tu.user_name_first + ' ' + tu.user_name_last) as RepName, fv.key_eautorep as RepID, sum(case when cs.isFleet = 1 then 1 else 0 end) as eFleetCount, sum(case when cs.isFleet = 0 then 1 else 0 end) as...
  12. mortonsa

    Deadlock Issue

    Hello All, I am trying to run the query below in query analyzer and I keep getting the following error message: Server: Msg 1205, Level 13, State 2, Line 1 Transaction (Process ID 53) was deadlocked on thread | communication buffer resources with another process and has been chosen as the...
  13. mortonsa

    Login Failed for user '(null)'

    The problem is fixed now. The solution was that the windows password must be the same on 1. My network login 2. The local login to my workstation 3. The remote server that the database is housed on Thanks for all of your help everyone.
  14. mortonsa

    Login Failed for user '(null)'

    Jason, I did as you suggested and this is what I am seeing.... I have a windows login set up under Security/Logins. The login name as I see it in SQL Server is CRM/sam005. This user also has access to the databases that I need. I can log onto the server using SQL Authentication. I can not...
  15. mortonsa

    Can you Index a Text Field?

    Yes, you can put a unique constraint on the text field. To do this perform the following steps: (In Enterprise Manager) 1. Right click on your table and select design table 2. Right click on any column name and select Indexes/Keys 3. Click New 4. Give your index a name and select the field that...
  16. mortonsa

    Login Failed for user '(null)'

    Jason and Claire HSU, Thanks for responding. I do not have a front end application. I am just trying to connect to my database through enterprise manager using Windows Authentication. When I right click on the server in enterprise manager my authentication is 'SQL Server and Windows'.
  17. mortonsa

    Login Failed for user '(null)'

    I have a server called CRM. I have a windows user name and password to connect to this server. My username is CRM/Sam005 I have a SQL Server database on the CRM server. I have a windows login set up in the database. My login is CRM/Sam005. I have checked to make sure that the authentication...
  18. mortonsa

    debugger does not allow step through

    At a previous job I was able to right click on a stored procedure, select debug and then I was able to step through my code and view the data in each of my variables. I am at a new place of employment now and when I right click on the stored procedure and say debug, the debugger runs right...
  19. mortonsa

    Problem Formatting Date

    I want a query to select records where the date is equal to today's date in mm/dd/yyyy format. Example: Select * from Table1 Where date = getdate() When I do this I am getting back a time as well and I'm not getting any records returned. I have tried to format the date as follows...
  20. mortonsa

    Nested If Statement - Please Help

    I have a form that a user can enter in a department that they need information for. If the user types "CSV" (Customer Service) I want my query to go to a lookup table and pull data where the code in that table is "CSV" or "ASQ" (which is another name for Customer...

Part and Inventory Search

Back
Top