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 Chriss Miller 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: mkal
  • Content: Threads
  • Order by date
  1. mkal

    xp_cmdshell can't see local drive

    I have a Windows 2008 R2 X64 Std Edt. and SQL 2008 (Developer Edt.) SP1 server. When I open SSMS and run the following queries: exec xp_cmdshell 'dir C:\' exec xp_cmdshell 'dir F:\' exec xp_cmdshell 'dir E:\' The first two (C: and F:) work fine but the last (E:) gives the message: "The...
  2. mkal

    Create table ownership problem

    I have an user who's been added to the dbo role in a sql 2000 database. When using Sql Server 2005 Management Studio to create the table the table always has the name domain\login_name as the owner of the table. It doesn't make any difference if he adds the dbo to the name before he goes to...
  3. mkal

    Monitoring size of databases

    I've written the following script to get the size, usedSpace and freeSpace of my databases. However, the results don't always match what SQL Management Studio (2005) shows. I'm sure I'm not taking something into account and any help would be appreciated. if...
  4. mkal

    Move transaction log file

    Using: Microsoft SQL Server 2005 SP3 Can you move the .ldf file on the secondary database that's involved in logshipping? If so any special precautions that I need to be aware of?
  5. mkal

    Repalce function not working

    I am trying to remove "question marks" (?) from a string of data. Example: SELECT REPLACE(<column_name>, '?', '') FROM <table_name> However it does not remove the question mark (?). I also tried using CHAR(63) in place of '?' and it still doesn't work. Is there something special about "?"...
  6. mkal

    UPDATE using locking hint

    I've inherited an application that calls a number of stored procedures. In quite a few of them I've been finding updates that look like the following: UPDATE tbl_name SET field_name = 'some value' FROM tbl_name WITH (NOLOCK) WHERE field_name = 'some other value' I didn't think you could use...
  7. mkal

    SQL 2005 Logshipping question

    We are going to be moving databases from one sql 2005 server to another sql 2005 server as part of a hardware upgrade. One of the databases participates in logshipping. If I backup the database and restore it on the other server will this break logshipping? I realize I will have to redo...
  8. mkal

    Remote Desktop via VPN

    I have two windows 2003 servers that are cross connected on a 10. IP/subnet 255.0.0.0 The public nic's are on a 20?.???.???.?? subnet 255.255.255.0 VPN host is 21?.??.??.??? but the error points to it being a 10. something IP. My problem is when I connect to the company VPN (cisco vpn client)...
  9. mkal

    SSIS package failing when scheduled to run as a job.

    Server OS: Windows 2003 x64 sp2 SQL Server 2005 x64 w/SP3 I have a SSIS package (ProtectionLevel:DontSaveSensitive) that has been imported to Integration Services as a file. The file has not been stored in the default location during the package creation. No problems w/the import and when I...
  10. mkal

    Hex to ascii conversion

    I am trying to take a hex value like 0x3A, 0x2f and convert it to it's ascii equivlent. I have code below that works but it needs to run inside of a function and since only other functions and extended stored procedures can be executed from within a function it is failing. The function takes a...
  11. mkal

    Logshipping detach db

    I have logshipping going on between two SQL 2000 Servers. On the server that contains the secondary server we are having hardware issues w/our SAN and will need to move to another SQL Server and a different storage array (not sure if this will be another SAN or maybe a DAS). My question is...
  12. mkal

    SQL 2005 attach db error

    I have a new 64bit sql 2005 server w/sp3 on Windows 2003 /sp2 I am trying to attach a sql 2000 database using the following sql statements i.e. without attaching the log file. CREATE DATABASE Test ON (FILENAME = 'D:\MSSQL\Data\Test_Data.MDF') FOR ATTACH_REBUILD_LOG I receive the following...
  13. mkal

    object ownership issue

    Windows 2003 x64 sp2 SQL Server 2000 x86 sp4 I found a sql login that had been given sysadmin rights to the server. It was also an user in a number of databases as well with db_owner permissions. I removed the sysadmin rights and now whenever someone creates a data object (table, sproc...
  14. mkal

    SQL 2005 SP3

    I just completed a fresh install of SQL 2005 x64. I then downloaded service pack 3 and ran the install. When it came to selecting the components to upgrade I was unable to select the MSSQL>>>Database Service (it did find a number of components to upgrade), in fact I couldn't check or uncheck...
  15. mkal

    nic has no lights - internet not working

    Not sure if this is the right place to post, if not please let me know where to go. My problem: Have a Dell Inspiron E1705 w/Windows XP sp3 installed. All drivers are up to date from Dells website. When I am at work I can plug into our network with no problems (I've used other network...
  16. mkal

    Memory issue (Erratic PageLife Expectancy)

    I have been battling what I believe is a memory issue and I have been trying to figure out why the page life expectancy on this server is all over the place. We are running sql 2000/sp4 on windows 2003 sp2. The server HP DL585 with 4 dual core cpu's, 48GB RAM (maxserver mem = 44GB) mirrored...
  17. mkal

    Pivoting data

    I have some data that looks like this: ID NAME COUNT PRODUCTNAME 1 Tom's Garage 5 Brakes 1 Tom's Garage 3 Tail Lights 1 Tom's Garage 3 Mufflers 1 Tom's Garage 2 Spark Plugs 1 Tom's Garage 1 Oil Filters Needs to look like this ID NAME...
  18. mkal

    Shrink database?

    I have a database that participates in logshipping. Right now the database (47.5gb) file for the Primary db is quite large and has considerable free space (24gb) . I would like to shrink the database to regain most of the free space. My question is there anything special I have to take into...
  19. mkal

    bcp command failing

    I have two servers lets call them A and B. Server A is in one domain and Server B is in another domain. I've created a local login on both servers and given it the same username and password. I've given this account access to share(s) on each server so it can read and write to the specified...
  20. mkal

    Finding queries/stored procedures that cause table scans

    If this isn't the correct forum just let me know where to go. How can I find out which queries/stored procedures are causing table/index scans? I know I can use profiler and select scans:started and scans:Stopped but that doesn't tell me which queries/stored procedures are the cause. Thanks mk

Part and Inventory Search

Back
Top