Hi everyOne...
I am new to sql Server and installed Ms sql 2005. i want to use command prompt for queries But whenever i use the sqlcmd command my computer gets restarted...
Why it is so????
can anyOne plz Help...
Hi everyOne...
I am new to sql Server and installed Ms sql 2005. i want to use command prompt for queries But whenever i use the sqlcmd command my computer gets restarted...
Why it is so????
can anyOne plz Help...
This symptom (invoking sqlcmd causes the PC to restart) strongly suggests a Windows-level crash (automatic reboot on system failure) rather than a normal client error. The two replies already on the thread ( and ) offer useful alternative CLIs to continue work, but the priority should be to collect evidence and isolate whether the problem is local, a corrupted client binary, a driver/hardware fault, or interference from security software.
Recommended diagnostic sequence (in order):
eventvwr.msc): inspect System and Application logs around the crash time for entries such as Kernel‑Power/Event ID 41, BugCheck, driver failures, or SQL client errors. Note timestamps and event IDs.C:\Windows\Minidump and %SystemRoot%\MEMORY.DMP. Use Windows Debugging Tools (WinDbg) to get the bugcheck code and offending module if present.sqlcmd.Mitigation and follow-up steps:
sfc /scannow, Windows Memory Diagnostic or memtest, and a full malware/AV scan. Investigate recent driver updates or third‑party software that hooks console/IO.Cautions: analyzing system crash dumps and changing drivers can affect system stability. Collect logs and dumps before making major changes.
Jump to Post— buddylee17 216Use osql:
Start->Run->cmdThis will connect to the default instance on your local machine and return the instance information:
osql -E -q "SELECT @@VERSION"http://msdn.microsoft.com/en-us/library/aa213088%28v=sql.80%29.aspx
Use osql:
Start->Run->cmd
This will connect to the default instance on your local machine and return the instance information:
osql -E -q "SELECT @@VERSION"
http://msdn.microsoft.com/en-us/library/aa213088%28v=sql.80%29.aspx
There is a free tool "SQLS*Plus" which is an SQL*Plus for SQL Server. Works with SQL Server 2000/2005 and 2008
Very flexible with data formatting (set lines size, pagesize, etc), variables (&, &&), spool, etc - light years better than isql, osql or sqlcmd
I found it at http://www.memfix.com
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.