Showing posts with label analyzer. Show all posts
Showing posts with label analyzer. Show all posts

Tuesday, March 20, 2012

Connection option in MSSQL2005

Hi,
There is a setting in option-> connection -> 'Perform translation for character data' in Query Analyzer in MSSQL 2000. Is there any option in MSSQL2005 has simliar function? Thanks in advance

(stephanielauym@.discussions.microsoft.com) writes:
> There is a setting in option-> connection -> 'Perform translation for
> character data' in Query Analyzer in MSSQL 2000. Is there any option
> in MSSQL2005 has simliar function? Thanks in advance There does not seem to. I had enough with character translation with the 6.5 tools, so I can't say that I miss it. What use would you see for such an option? -- Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

|||in the DB, some of the field in varchar contains chinese characters. In MSSQL2000, we un-click this option to read the chinese char.|||

(stephanielauym@.discussions.microsoft.com) writes:
> in the DB, some of the field in varchar contains chinese characters. In
> MSSQL2000, we un-click this option to read the chinese char. And you are saying that there is no way to turn transkation off in Mgmt Studio? I have it off in my QA, but I can't say whether that is the default or not. (I assumed that it was off by default, but maybe I was wrong.) What is the collation of these columns? How do they display in QA currently? If this is important for you I suggest that submit a suggetion on http://lab.msdn.microsoft.com/productfeedback/. It's a good idea to give a background why you want this. -- Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

|||Yes, I can't find the option which is similar to the option 'Perform translation for character data' in Management Studio. In our case, turning off this option would display chinese in varchar field.sqlsql

Thursday, March 8, 2012

Connection Failure to SQL Server 2005

I am trying to connect to a SQL Server 2005 instance from another machine
using Query Analyzer (SQL Server 2000 version) and I am getting the following
error:
Server: Msg 11, Level 16, State 1
[Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error.
I can connect to other SQL Server 2000 versions but not the 2005.
Thanks
Allen
Did you enable the Allow Remote Connections option for the SQL2005 server
instance?
Andrew J. Kelly SQL MVP
"Allen" <Allen@.discussions.microsoft.com> wrote in message
news:7F4792F3-8931-4E92-BEDA-0058D9917CFD@.microsoft.com...
>I am trying to connect to a SQL Server 2005 instance from another machine
> using Query Analyzer (SQL Server 2000 version) and I am getting the
> following
> error:
> Server: Msg 11, Level 16, State 1
> [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error.
> I can connect to other SQL Server 2000 versions but not the 2005.
> Thanks
> --
> Allen

Connection Failure to SQL Server 2005

I am trying to connect to a SQL Server 2005 instance from another machine
using Query Analyzer (SQL Server 2000 version) and I am getting the followin
g
error:
Server: Msg 11, Level 16, State 1
[Microsoft][ODBC SQL Server Driver][DBNETLIB]General network err
or.
I can connect to other SQL Server 2000 versions but not the 2005.
Thanks
--
AllenDid you enable the Allow Remote Connections option for the SQL2005 server
instance?
Andrew J. Kelly SQL MVP
"Allen" <Allen@.discussions.microsoft.com> wrote in message
news:7F4792F3-8931-4E92-BEDA-0058D9917CFD@.microsoft.com...
>I am trying to connect to a SQL Server 2005 instance from another machine
> using Query Analyzer (SQL Server 2000 version) and I am getting the
> following
> error:
> Server: Msg 11, Level 16, State 1
> [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network e
rror.
> I can connect to other SQL Server 2000 versions but not the 2005.
> Thanks
> --
> Allen|||I've serched high and low for this facility and cannot find it.
I have enabled both client/server tcp/ip named pipes shared memory
and still cannot connect.
"Andrew J. Kelly" wrote:

> Did you enable the Allow Remote Connections option for the SQL2005 server
> instance?
> --
> Andrew J. Kelly SQL MVP
>
> "Allen" <Allen@.discussions.microsoft.com> wrote in message
> news:7F4792F3-8931-4E92-BEDA-0058D9917CFD@.microsoft.com...
>
>|||how does one:
enable the Allow Remote Connections option for the SQL2005 server
> instance?
I've set up ports and enabled tcp/ip, shared memory, pipes and do not see a
Allow Remote Connections option
I've shut off my firewall. I just installed sql server 2005 and am trying to
connect on the SAME MACHINE
"Landon Kelsey" wrote:
[vbcol=seagreen]
> I've serched high and low for this facility and cannot find it.
> I have enabled both client/server tcp/ip named pipes shared memory
> and still cannot connect.
> "Andrew J. Kelly" wrote:
>|||Try running through this quick tutorial to see if you missed anything:
http://msdn2.microsoft.com/en-us/library/ms345318(en-US,SQL.90).aspx
--
Rick Byham
MCDBA, MCSE, MCSA
Documentation Manager,
Microsoft, SQL Server Books Online
This posting is provided "as is" with
no warranties, and confers no rights.
"Landon Kelsey" <landonmkelsey@.hotmail.com> wrote in message
news:D98FEEC7-327F-4079-A971-B8A30A6D8FAE@.microsoft.com...[vbcol=seagreen]
> how does one:
> enable the Allow Remote Connections option for the SQL2005 server
> I've set up ports and enabled tcp/ip, shared memory, pipes and do not see
> a
> Allow Remote Connections option
> I've shut off my firewall. I just installed sql server 2005 and am trying
> to
> connect on the SAME MACHINE
>
> "Landon Kelsey" wrote:
>

Friday, February 24, 2012

Connection Broken

Hi,
Our developer ran a sp in query analyzer (local), and in the middle got this message:
==============================================
[Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionRead (recv()).
Server: Msg 11, Level 16, State 1, Line 0
General network error. Check your network documentation.
ODBC: Msg 0, Level 16, State 1
Communication link failure

Connection Broken
==============================================
OS: Win2k Adv Srv
SQL 2k sp3

Thanks for your help!Communication Link Failure mostly occurs if the the underlying network
connection is inconsistent.

What is the net-lib your app is using to connect to SQL? What is the frequency of these errors? What is your MDAC version?

I would suggest capturing a network monitor trace to make sure network packets are not dropped. You want to capture the netmon trace at both the client and the server when the problem happens. Go to www.microsoft.com\data and download the latest mdac version. Also, run dbcc checkdb and/or dbcc dbreindex to ensure your data is in good shape.

If your network is local and persistent I would also check the hardware, network card, hub or cable. Any of these could generate the error.|||Originally posted by oj_n
Communication Link Failure mostly occurs if the the underlying network
connection is inconsistent.

What is the net-lib your app is using to connect to SQL? What is the frequency of these errors? What is your MDAC version?

I would suggest capturing a network monitor trace to make sure network packets are not dropped. You want to capture the netmon trace at both the client and the server when the problem happens. Go to www.microsoft.com\data and download the latest mdac version. Also, run dbcc checkdb and/or dbcc dbreindex to ensure your data is in good shape.

If your network is local and persistent I would also check the hardware, network card, hub or cable. Any of these could generate the error.

Thanks,
this process was started in Query Analyzer on the local server. There were a couple insert errors before this (foreign key voilation). I'll check the data. Thanks again.

Connection Broken

I am updating records in my database with the procedure below. The data is
updated as it should but the Enterprise Manager (SQL Query Analyzer) gives
the error:
[Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionCheckForData
(CheckforData()).
Server: Msg 11, Level 16, State 1, Line 0
General network error. Check your network documentation.
Connection Broken
It looks like this error is blocking the SQL Server from responding to new
requests immediately (3-4 seconds) after an update.
Any ideas of what can cause this problem?
The sql call with belonging SQL procedure (below) has been tested on several
SQL servers and is working OK, but on this server I am running it against at
the moment it gives error above.
p_kontaktpersoner_endre 44, 'Tor Inge', 'Rislaa', 'TIR', 840, 'IT Manager',
'Adm', '38 15 44 30', '38 15 44 35', '900 90 700', 'myemail@.vef.no', '', 1,
'Test note', 1
CREATE PROCEDURE p_kontaktpersoner_endre
@.kp_id int = 1 ,
@.fornavn varchar(50) = '' ,
@.etternavn varchar(50) = '' ,
@.initialer varchar(3) = '' ,
@.ko_id int = 0 ,
@.stilling varchar(50) = '' ,
@.avdeling varchar(50) = '' ,
@.telefon varchar(30) = '' ,
@.telefaks varchar(30) = '' ,
@.mobiltelefon varchar(30) = '' ,
@.e_post varchar(50) = '' ,
@.kategori varchar(100) = '' ,
@.prioritet int = 1 ,
@.merknad text = '' ,
@.aktiv int = 1
AS
UPDATE kontaktpersoner
SET fornavn = @.fornavn,
etternavn = @.etternavn,
initialer = @.initialer,
ko_id = @.ko_id,
stilling = @.stilling,
avdeling = @.avdeling,
telefon = @.telefon,
telefaks = @.telefaks,
mobiltelefon = @.mobiltelefon,
e_post= @.e_post,
kategori = @.kategori,
prioritet = @.prioritet,
merknad = @.merknad,
aktiv= @.aktiv
FROM kontaktpersoner
WHERE kp_id = @.kp_idHi
You don't give the version information for SQL Server, but this may be one
cause!
http://support.microsoft.com/defaul...kb;en-us;903742
John
"Tor Inge Rislaa" <tor.ingenospam@.rislaa.no> wrote in message
news:OWme0eT3FHA.636@.TK2MSFTNGP10.phx.gbl...
>I am updating records in my database with the procedure below. The data is
>updated as it should but the Enterprise Manager (SQL Query Analyzer) gives
>the error:
>
> [Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionCheckForData
> (CheckforData()).
> Server: Msg 11, Level 16, State 1, Line 0
> General network error. Check your network documentation.
> Connection Broken
>
> It looks like this error is blocking the SQL Server from responding to new
> requests immediately (3-4 seconds) after an update.
>
> Any ideas of what can cause this problem?
>
> The sql call with belonging SQL procedure (below) has been tested on
> several SQL servers and is working OK, but on this server I am running it
> against at the moment it gives error above.
>
>
> p_kontaktpersoner_endre 44, 'Tor Inge', 'Rislaa', 'TIR', 840, 'IT
> Manager', 'Adm', '38 15 44 30', '38 15 44 35', '900 90 700',
> 'myemail@.vef.no', '', 1, 'Test note', 1
> CREATE PROCEDURE p_kontaktpersoner_endre
> @.kp_id int = 1 ,
> @.fornavn varchar(50) = '' ,
> @.etternavn varchar(50) = '' ,
> @.initialer varchar(3) = '' ,
> @.ko_id int = 0 ,
> @.stilling varchar(50) = '' ,
> @.avdeling varchar(50) = '' ,
> @.telefon varchar(30) = '' ,
> @.telefaks varchar(30) = '' ,
> @.mobiltelefon varchar(30) = '' ,
> @.e_post varchar(50) = '' ,
> @.kategori varchar(100) = '' ,
> @.prioritet int = 1 ,
> @.merknad text = '' ,
> @.aktiv int = 1
> AS
> UPDATE kontaktpersoner
> SET fornavn = @.fornavn,
> etternavn = @.etternavn,
> initialer = @.initialer,
> ko_id = @.ko_id,
> stilling = @.stilling,
> avdeling = @.avdeling,
> telefon = @.telefon,
> telefaks = @.telefaks,
> mobiltelefon = @.mobiltelefon,
> e_post= @.e_post,
> kategori = @.kategori,
> prioritet = @.prioritet,
> merknad = @.merknad,
> aktiv= @.aktiv
> FROM kontaktpersoner
> WHERE kp_id = @.kp_id
>|||Thanks. Do you know where to find what version or SP my server has
TIRislaa
"John Bell" <jbellnewsposts@.hotmail.com> skrev i melding
news:%23m$JfcU3FHA.2196@.tk2msftngp13.phx.gbl...
> Hi
> You don't give the version information for SQL Server, but this may be one
> cause!
> http://support.microsoft.com/defaul...kb;en-us;903742
> John
> "Tor Inge Rislaa" <tor.ingenospam@.rislaa.no> wrote in message
> news:OWme0eT3FHA.636@.TK2MSFTNGP10.phx.gbl...
>|||Hi
Try http://www.aspfaq.com/show.asp?id=2160 and
http://www.aspfaq.com/sql2000builds.asp
In your update statement you don't need the from clause as it is the
same table as the one being updated.
John
Tor Inge Rislaa wrote:
> Thanks. Do you know where to find what version or SP my server has
> TIRislaa
> "John Bell" <jbellnewsposts@.hotmail.com> skrev i melding
> news:%23m$JfcU3FHA.2196@.tk2msftngp13.phx.gbl...

Friday, February 17, 2012

Connecting VSS to Query Analyzer

Anyone know of a way to connect Visual Source Safe to query analyzer? I love the functionality of Query analyzer but would like to use some source control with my code. Any help would be greatly appreciated.
Thanks in advance.
VSS has a CLI that can be used to integrate with SQL QA. Ken Henderson's
book "The Guru's Guide to SQL Server Stored Procs, XML & HTML" has a section
dedicated on how to set this up (Pg 113 I think). If you've got a copy of
that book, check it out - this way, you can check in & out of VSS directly
from the Query Analyser. Ken also provides a tool called "GGSQLBuilder" that
lets you build versioned db object scripts from VSS as well. If you haven't
got access to the book, post back & I can send you more instructions if you
want to do this..
Regards,
Greg Linwood
SQL Server MVP
"TCG_GILBERT" <TCGGILBERT@.discussions.microsoft.com> wrote in message
news:83BD4718-38EC-4F9B-ADE9-082B7EE902E0@.microsoft.com...
> Anyone know of a way to connect Visual Source Safe to query analyzer? I
love the functionality of Query analyzer but would like to use some source
control with my code. Any help would be greatly appreciated.
> Thanks in advance.
>
|||I you can, get a copy of "the Guru's Guide to SQL Server Stored Procedures..." by Ken Henderson. It has several pages about using source control with QA.
Basically you use the Q.A. tools/customize option to drive the VSS ss.exe program.
For example:
Menu Name: Set Project Path
Command: ss.exe
Args: cp $/path_to_your_project
Menu Name: Set Working Folder
Command: ss.exe
Args: workfold $(FileDir)
Menu Name: Check in Current File
Command: ss.exe
Args: checkin $(FileName) $(FileExt)
InitDir: $(FileDir)
Q.A. Will repace the tokens below when the command is run
$(FilePath) full path to current file (save first or you will get file name with *)
$(FileName) filename without extension
$(FileExt) file ext with leading "."
$(FileDir) dir path of the current file
HTH
-Kevin
"TCG_GILBERT" wrote:

> Anyone know of a way to connect Visual Source Safe to query analyzer? I love the functionality of Query analyzer but would like to use some source control with my code. Any help would be greatly appreciated.
> Thanks in advance.
>
|||Thanks a bunch Greg, I'll go try to get my hands on a copy of this book. If I can't I might ask for a little more help.
Josh
"Greg Linwood" wrote:

> VSS has a CLI that can be used to integrate with SQL QA. Ken Henderson's
> book "The Guru's Guide to SQL Server Stored Procs, XML & HTML" has a section
> dedicated on how to set this up (Pg 113 I think). If you've got a copy of
> that book, check it out - this way, you can check in & out of VSS directly
> from the Query Analyser. Ken also provides a tool called "GGSQLBuilder" that
> lets you build versioned db object scripts from VSS as well. If you haven't
> got access to the book, post back & I can send you more instructions if you
> want to do this..
> Regards,
> Greg Linwood
> SQL Server MVP
> "TCG_GILBERT" <TCGGILBERT@.discussions.microsoft.com> wrote in message
> news:83BD4718-38EC-4F9B-ADE9-082B7EE902E0@.microsoft.com...
> love the functionality of Query analyzer but would like to use some source
> control with my code. Any help would be greatly appreciated.
>
>
|||Thanks a bunch Kevin, I'll go try to get my hands on a copy of this book. If I can't I might ask for a little more help.
Josh
"googleqand@.yahoo.com" wrote:
[vbcol=seagreen]
> I you can, get a copy of "the Guru's Guide to SQL Server Stored Procedures..." by Ken Henderson. It has several pages about using source control with QA.
> Basically you use the Q.A. tools/customize option to drive the VSS ss.exe program.
> For example:
> Menu Name: Set Project Path
> Command: ss.exe
> Args: cp $/path_to_your_project
> Menu Name: Set Working Folder
> Command: ss.exe
> Args: workfold $(FileDir)
> Menu Name: Check in Current File
> Command: ss.exe
> Args: checkin $(FileName) $(FileExt)
> InitDir: $(FileDir)
> Q.A. Will repace the tokens below when the command is run
> $(FilePath) full path to current file (save first or you will get file name with *)
> $(FileName) filename without extension
> $(FileExt) file ext with leading "."
> $(FileDir) dir path of the current file
> HTH
> -Kevin
>
>
> "TCG_GILBERT" wrote: