Help..
-
- Posts: 15
- Joined: Wed 15 Jul 2009 20:21
Help..
hello
i have one form i am putting sqlconnection component on form connecting server is everythink okey..
then putting one sqldatatable and selection connection property my sql connection then connecting table.. is everythink okey
then again putting another sqldatatable component then trying to select again my sqlconnection but in the list my connection is dissapearing automatically creating new sqlconnection i dont understand please help me where is my problem ?
thanks
i have one form i am putting sqlconnection component on form connecting server is everythink okey..
then putting one sqldatatable and selection connection property my sql connection then connecting table.. is everythink okey
then again putting another sqldatatable component then trying to select again my sqlconnection but in the list my connection is dissapearing automatically creating new sqlconnection i dont understand please help me where is my problem ?
thanks
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
-
- Posts: 15
- Joined: Wed 15 Jul 2009 20:21
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
I will send you a test project in a letter, please check that it was not blocked by your mail filter.
Please try reproducing the problem with this sample. If it is possible, the issue is probably an integration one; please try performing the following:
- uninstall dotConnect for SQL Server;
- clear the Program Files\Devart\dotConnect and Program Files\Common Files\Devart\dotConnect folders;
- remove all Devart.* and policy.*.Devart.* files from the GAC;
- re-install dotConnect for SQL Server with the 'Install menu item and toolbox components into Visual Studio' option enabled.
If in the sample you are able to set the same connection to both SqlDataTables, please send us a test project with which the issue can be reproduced so that we are able to investigate it in details.
Please try reproducing the problem with this sample. If it is possible, the issue is probably an integration one; please try performing the following:
- uninstall dotConnect for SQL Server;
- clear the Program Files\Devart\dotConnect and Program Files\Common Files\Devart\dotConnect folders;
- remove all Devart.* and policy.*.Devart.* files from the GAC;
- re-install dotConnect for SQL Server with the 'Install menu item and toolbox components into Visual Studio' option enabled.
If in the sample you are able to set the same connection to both SqlDataTables, please send us a test project with which the issue can be reproduced so that we are able to investigate it in details.
-
- Posts: 15
- Joined: Wed 15 Jul 2009 20:21
'
'sql_connection
'
Me.sql_connection.ConnectionString = "Data Source=.;Initial Catalog=SysSoftDB;Integrated Security=False;Password=dsadrer" & _
"8;Persist Security Info=True;User ID=sa;Application Name=""dotConnect for SQL Ser" & _
"ver"";"
Me.sql_connection.Name = "sql_connection" Me.qr_grid.Name = "qr_grid"
Me.qr_grid.TableName = "sdt_grid"
Me.qr_grid.Owner = Me
Me.qr_grid.Connection = CType(Devart.Common.GlobalComponentsCache.GetObjectByName("frm_login.sql_connection"), Devart.Data.SqlServer.SqlConnection)
i dont understand when i am selecting from frm_login.sql_connection on sqldatatable1 automatically creatin on form sql_connection
after some tables are changing like this
'
'sc_yetki
'
Me.sc_yetki.CommandText = "SELECT * FROM dbo.sys_user_rights ur" & Global.Microsoft.VisualBasic.ChrW(10) & "LEFT OUTER JOIN dbo.sys_user_rights_detay ur" & _
"d ON ur.YetkiID = urd.YetkiID " & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE ur.UserID = @userid AND urd.FormCode = @for" & _
"mcode"
Me.sc_yetki.Connection = Me.sql_connection Me.sc_yetki.Name = "sc_yetki"
Me.sc_yetki.Parameters.Add(New Devart.Data.SqlServer.SqlParameter("@userid", CType(resources.GetObject("sc_yetki.Parameters"), Object)))
Me.sc_yetki.Parameters.Add(New Devart.Data.SqlServer.SqlParameter("@formcode", CType(resources.GetObject("sc_yetki.Parameters1"), Object)))
but some one are
'
'tb_master
'
Me.tb_master.Name = "tb_master"
Me.tb_master.TableName = "sdt_master"
Me.tb_master.Owner = Me
Me.tb_master.Connection = CType(Devart.Common.GlobalComponentsCache.GetObjectByName("frm_login.sql_connection"), Devart.Data.SqlServer.SqlConnection)
someone help me please..
'sql_connection
'
Me.sql_connection.ConnectionString = "Data Source=.;Initial Catalog=SysSoftDB;Integrated Security=False;Password=dsadrer" & _
"8;Persist Security Info=True;User ID=sa;Application Name=""dotConnect for SQL Ser" & _
"ver"";"
Me.sql_connection.Name = "sql_connection" Me.qr_grid.Name = "qr_grid"
Me.qr_grid.TableName = "sdt_grid"
Me.qr_grid.Owner = Me
Me.qr_grid.Connection = CType(Devart.Common.GlobalComponentsCache.GetObjectByName("frm_login.sql_connection"), Devart.Data.SqlServer.SqlConnection)
i dont understand when i am selecting from frm_login.sql_connection on sqldatatable1 automatically creatin on form sql_connection
after some tables are changing like this
'
'sc_yetki
'
Me.sc_yetki.CommandText = "SELECT * FROM dbo.sys_user_rights ur" & Global.Microsoft.VisualBasic.ChrW(10) & "LEFT OUTER JOIN dbo.sys_user_rights_detay ur" & _
"d ON ur.YetkiID = urd.YetkiID " & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE ur.UserID = @userid AND urd.FormCode = @for" & _
"mcode"
Me.sc_yetki.Connection = Me.sql_connection Me.sc_yetki.Name = "sc_yetki"
Me.sc_yetki.Parameters.Add(New Devart.Data.SqlServer.SqlParameter("@userid", CType(resources.GetObject("sc_yetki.Parameters"), Object)))
Me.sc_yetki.Parameters.Add(New Devart.Data.SqlServer.SqlParameter("@formcode", CType(resources.GetObject("sc_yetki.Parameters1"), Object)))
but some one are
'
'tb_master
'
Me.tb_master.Name = "tb_master"
Me.tb_master.TableName = "sdt_master"
Me.tb_master.Owner = Me
Me.tb_master.Connection = CType(Devart.Common.GlobalComponentsCache.GetObjectByName("frm_login.sql_connection"), Devart.Data.SqlServer.SqlConnection)
someone help me please..
-
- Posts: 15
- Joined: Wed 15 Jul 2009 20:21
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
We have reproduced the following issue under Visual Studio 2010: when an SqlConnection object is created on a form (say, Form1) and is referenced from another form (say, Form2), a redundant instance of SqlConnection is created on Form2. Please confirm that you meant this problem. We will investigate it and inform about the results here.
-
- Posts: 15
- Joined: Wed 15 Jul 2009 20:21
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
-
- Posts: 15
- Joined: Wed 15 Jul 2009 20:21
-
- Posts: 15
- Joined: Wed 15 Jul 2009 20:21
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
We have released the new 2.40.194 version of dotConnect for SQL Server which includes the fix for this problem.
The new version can be downloaded from
http://www.devart.com/dotconnect/sqlser ... nload.html
(the trial version) or from Registered Users' Area (for users with active subscription only):
http://secure.devart.com/
For the detailed information about the fixes and improvements available in the new version, please refer to
http://www.devart.com/forums/viewtopic.php?t=19636
The new version can be downloaded from
http://www.devart.com/dotconnect/sqlser ... nload.html
(the trial version) or from Registered Users' Area (for users with active subscription only):
http://secure.devart.com/
For the detailed information about the fixes and improvements available in the new version, please refer to
http://www.devart.com/forums/viewtopic.php?t=19636