I am developing a Smart Device project for my Symbol MC9000 Windows Mobile
handheld. I am trying to make a simple connection to a SQL server. My proble
m
is my Data Adapter object does not have a .FILL method as it always has in
normal C# desktop apps.
I also noticed I cannot do a dataadapter object.dispose() either (i.e da.
Dispose(); )
Am I missing something or is this development environment for mobile just
that limited?
The intellisense only shows the following methods/properties for the da
object.
.DeleteCommand, .InsertCommand, .RowUpdated, .RowUpdating, .SelectCommand,
and .UpdateCommand.
That all it lists. Do I need to install something maybe?
I have never done a mobile app so this is all new to me.
Any help would be greatly appreciated.
Below is some of the code I am developing just to make the connection.
David
// Connection String for MSSQL Server
string Connection_String = "Initial Catalog=WINSTSDB;Data
Source=DB2ML350;workstation id=Symbol_MC9000w;packet size=4096;integrated
security=SSPI";
// Setup SQL Connection object
SqlConnection dbConn = new SqlConnection( Connection_String );
// Create Data Adapter object with SQL statement.
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM RackTemp WHERE SID =
'" + strSidcode + "'",dbConn);
// Define a Data Table object
System.Data.DataTable WinstisTable = new DataTable();
try
{
// Pull in data into data table object named WinstisTable
conn.Open();
da.Fill( WinstisTable );
}
catch(Exception exc)
{
MessageBox.Show(exc.Message.ToString(),"Error",MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
}
finally
{
// Close connection
conn.Close();
}
Message posted via http://www.webservertalk.comDavid C via webservertalk.com wrote:
> I am developing a Smart Device project for my Symbol MC9000 Windows
> Mobile handheld. I am trying to make a simple connection to a SQL
> server. My problem is my Data Adapter object does not have a .FILL
> method as it always has in normal C# desktop apps.
>
You might be better off posting this to a csharp or adonet newgroup. It's
somewhat offtopic here, and you are less likely to get a response than you
would in a relevant dotnet group (all the .Net groups have the word "dotnet"
in their names).
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.|||I guess because it is about SQL Connectivity that it might apply here. I wil
l
post on DotNetForums.com to see if some may help me.
David
Bob Barrows [MVP] wrote:
>You might be better off posting this to a csharp or adonet newgroup. It's
>somewhat offtopic here, and you are less likely to get a response than you
>would in a relevant dotnet group (all the .Net groups have the word "dotnet
"
>in their names).
Message posted via http://www.webservertalk.com
Showing posts with label method. Show all posts
Showing posts with label method. Show all posts
Tuesday, March 20, 2012
No .Fill method in Data Adapter
Monday, March 12, 2012
NIC Teaming ( Fault Tolerant Mode)
Has anyone had good or bad experiences with enabling NIC Teaming ..i.e. the
redundant method for your SQL Servers ? Any issues to be concerned with ?
Would like to hear from youll
ThanksGenerally, I haven't had/heard any problems. SQL Product Support Services
(PSS) may ask you to disable it as a troubleshooting step, especially in a
clustered environment if you open a support case, but otherwise I am unaware
of any concerns.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Hassan" <fatima_ja@.hotmail.com> wrote in message
news:unCY6rM3EHA.524@.TK2MSFTNGP09.phx.gbl...
> Has anyone had good or bad experiences with enabling NIC Teaming ..i.e.
the
> redundant method for your SQL Servers ? Any issues to be concerned with ?
> Would like to hear from youll
> Thanks
>
redundant method for your SQL Servers ? Any issues to be concerned with ?
Would like to hear from youll
ThanksGenerally, I haven't had/heard any problems. SQL Product Support Services
(PSS) may ask you to disable it as a troubleshooting step, especially in a
clustered environment if you open a support case, but otherwise I am unaware
of any concerns.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Hassan" <fatima_ja@.hotmail.com> wrote in message
news:unCY6rM3EHA.524@.TK2MSFTNGP09.phx.gbl...
> Has anyone had good or bad experiences with enabling NIC Teaming ..i.e.
the
> redundant method for your SQL Servers ? Any issues to be concerned with ?
> Would like to hear from youll
> Thanks
>
NIC Teaming ( Fault Tolerant Mode)
Has anyone had good or bad experiences with enabling NIC Teaming ..i.e. the
redundant method for your SQL Servers ? Any issues to be concerned with ?
Would like to hear from youll
Thanks
Generally, I haven't had/heard any problems. SQL Product Support Services
(PSS) may ask you to disable it as a troubleshooting step, especially in a
clustered environment if you open a support case, but otherwise I am unaware
of any concerns.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Hassan" <fatima_ja@.hotmail.com> wrote in message
news:unCY6rM3EHA.524@.TK2MSFTNGP09.phx.gbl...
> Has anyone had good or bad experiences with enabling NIC Teaming ..i.e.
the
> redundant method for your SQL Servers ? Any issues to be concerned with ?
> Would like to hear from youll
> Thanks
>
redundant method for your SQL Servers ? Any issues to be concerned with ?
Would like to hear from youll
Thanks
Generally, I haven't had/heard any problems. SQL Product Support Services
(PSS) may ask you to disable it as a troubleshooting step, especially in a
clustered environment if you open a support case, but otherwise I am unaware
of any concerns.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Hassan" <fatima_ja@.hotmail.com> wrote in message
news:unCY6rM3EHA.524@.TK2MSFTNGP09.phx.gbl...
> Has anyone had good or bad experiences with enabling NIC Teaming ..i.e.
the
> redundant method for your SQL Servers ? Any issues to be concerned with ?
> Would like to hear from youll
> Thanks
>
Wednesday, March 7, 2012
NEWID()
Hi,
Can someone explain the generation method of a uniqueidentifier in the NEWID() function ?
This number is generated using identification number of computer network card and an unique number from the CPU clock. (The network card is unique too)|||Why do you care?
The uniqueidentifier is guaranteed to be a unique hex identifier. It is not sequential and cannot be used for any other purpose than a unique id of an object or record.
|||Check out the following topics for description on the Win32API that SQL Server uses for NEWID and NEWSEQUENTIALID. The actual algorithm details can be found on the web.
http://msdn2.microsoft.com/en-us/library/aa379205.aspx
http://msdn2.microsoft.com/en-us/library/aa379322.aspx
Subscribe to:
Posts (Atom)