| Answers |
What is the difference between Standard and Professional version?
The free Standard Edition represents a fully-featured ADO.NET data provider with design time support
and advanced classes. The Professional Edition adds more classes, tools, technologies,
and integration capabilities.
The following list briefly enumerates main advantages of Professional Edition.
- Powerful SqlDataTable component as all-in-one table data access solution.
- SqlDataSet class allows using typed and untyped provider-specific datasets.
- DataSet Wizard greatly simplifies process of generating datasets in your application.
- DataSet Manager and DataSet Editor help managing the datasets.
- DataLink class serves for universal cross-form data binding.
- SqlLoader class serves to load external data into the database extremely fast.
- Support for DBMonitor that performs per-component tracing of database events such as
SQL statement execution, commit, rollback, etc.
- ASP.NET 2.0 providers support allows using the data provider in ASP.NET 2.0 provider model.
To test this functionality use the Trial Edition, which incorporates all aforementioned features.
|
| Installation and deployment |
I installed SQLDirect .NET trial, then I have bought and
installed purchased version, but something went wrong.
Make sure you had uninstalled the trial version correctly.
There should be no old (trial) assemblies present in your system. Uninstall
SQLDirect .NET and check your Global Assembly Cache and local folders for
CoreLab.* assemblies. Remove all CoreLab.* files and reinstall
SQLDirect .NET.
To upgrade to a newer version I have to uninstall SQLDirect .NET first. How do I do it right?
Close all running IDEs and help collections, then choose Uninstall SQLDirect .NET
link from Start menu.
You say, there are sample projects, but I can't find any.
Probably you have installed SQLDirect .NET not in full mode. Please choose
full when installing SQLDirect .NET. All samples are installed by default in
\Program Files\SQLDirect.NET\Samples folder.
Are there any restrictions for Visual Studio Express editions?
Yes, there are some. First, the provider add-in (and hence menu item) is not available.
Second, components are not registered in toolbox automatically (though you can do it manually). Finally,
advanced Visual Studio integration (DDEX) is not available, except Microsoft Web Developer 2005 Express.
What is required for my application to work on end-user machine?
To deploy applications written with SQLDirect .NET you should register
necessary run-time assemblies at Global Assembly Cache for
appropriate .NET Framework or place it in the folder of your application (more on that in
the Deployment topic). You can compile the application for .NET Framework 1.1 and
deploy it to .NET Framework 2.0. Another way
to install the *.dll files needed is to launch setup program of SQLDirect .NET and choose
"compact" option. Note that according to License Agreement this is the only setup mode that you can
use on target machine.
How to install SQLDirect .NET on machine that does not have
Visual Studio .NET or Delphi installed?
Choose "compact" type when asked by the installer.
How to deploy web projects that use SQLDirect .NET?
Place CoreLab.SqlDirect.dll and CoreLab.Data.dll in bin folder of your web project. Another way
to install the *.dll files needed is to launch setup program of SQLDirect .NET on a target machine and choose
"compact" option.
|
| Subscriptions |
I have a registered version of SQLDirect .NET. Will I need to pay to upgrade to future versions?
All upgrades to future versions are free to users with an active SQLDirect .NET Subscription.
What are the benefits of the SQLDirect .NET Subscription Program?
The SQLDirect .NET Subscription Program is an annual maintenance and support service
for SQLDirect .NET users.
Users with a valid SQLDirect .NET Subscription get the following benefits:
- Access to new versions of SQLDirect .NET when they are released
- Access to all SQLDirect .NET updates and bug fixes
- Product support through the SQLDirect .NET Priority Support program
- Notification of new product versions
Priority Support is an advanced product support program which offers you
expedited individual assistance with SQLDirect .NET-related questions from the SQLDirect .NET developers themselves.
Priority Support is carried out over email and has a two business day response policy.
Can I use my version of SQLDirect .NET after my Subscription expires?
Yes, you can. SQLDirect .NET version licenses are perpetual.
I want a SQLDirect .NET Subscription! How can I get one?
An annual SQLDirect .NET Subscription is included when ordering or upgrading to any registered (non-Trial) edition of SQLDirect .NET.
You can renew your SQLDirect .NET Subscription on the SQLDirect .NET Ordering Page. For more information, please contact sales@crlab.com.
|
| Licensing |
What is the licensing you use?
SQLDirect .NET uses .NET component licensing. To build operational
application SQLDirect .NET requires valid license. If no license is available,
SQLDirect .NET does not work.
How to embed license into my application?
Usually you do not have to care about embedding license into your application.
When you install SQLDirect .NET the system is configured so that licensing is done
transparently. License is automatically added to project when you place a SqlConnection
component onto a form.
You may be required to add license manually. It is necessary for console applications,
class libraries, some ASP.NET applications.
For instructions on how to add license manually refer to
Licensing
topic in SQLDirect .NET help.
On opening connection I get an exception saying "License not found...". What should I do?
This generally indicates that license information could not be found, or you try to
apply it in some way that does not suit the kind of application. For example:
- File licenses.licx, required for SQLDirect .NET to function properly, could not be found.
- File licenses.licx is not added as embedded resource.
- File App_Licenses.dll not found in ASP.NET applications.
To fix the problem determine type of your application and read corresponding section of "Licensing" topic.
On opening connection I get an exception saying "License not valid...". What should I do?
This means that license information was found but it is incorrect. It usually happens in the following cases:
- The project was earlier compiled with trial version of SQLDirect .NET.
- File licenses.config used by a class library does not refer to launched executable.
- The App_Licenses.dll belongs to other application or needs to be recompiled.
- Something's wrong with the operating system or installation of SQLDirect .NET.
If you encounter this problem delete all files from obj folder and rebuild the project. If this does not help send
to our support address small compiled binary with sources so we can investigate the problem detailed.
Deployed application worked fine some time, but in some moment it started
to say "Sorry, your trial period has expired". But I do not use trial version any more.
Probably you compiled the application with Trial edition of SQLDirect .NET,
and deployed it with assemblies from non-trial version. In this case time limit is actual
as well. To eliminate the problem just recompile the project.
How to license ASP.NET applications?
To support server-side compilation you ought to have special assembly App_Licenses.dll
in the Bin directory of your site. To create this assembly execute Build
Runtime Licenses command in the licenses.licx file context menu in the Solution
Explorer view. Required assembly will be created automatically.
Note that this is not necessary for precompiled ASP.NET applications (if nothing is
compiled on server by user request). Precompiled applications are licensed as usual applications.
Do end-users need a license?
No, end-users of your application do not require any license.
|
| Connection pooling |
I call SqlConnection.Open(), then Close(). Physical connection is still
visible by server. Isn't it a bug?
No, it is not. This is Connection Pooling feature. Actual connection is not closed in
order to be used later by your application. This boosts performance greatly.
I get exception "Timeout expired. The timeout period elapsed..."
What to do?
The full text of the exception is "Timeout expired. The timeout period elapsed prior to
obtaining a connection from the pool. This may have occurred because all pooled connections were in
use and max pool size was reached." It clearly states that you have run out of connections available.
To solve the problem increase Max Pool Size connection string parameter value. The default
value is 100. Another way to get extra connections is to clear one or all of the pools. Or you can
turn connection pooling off using Pooling connection string parameter.
How to prevent possible pooling problems?
You can clear the pool explicitly. Generally pool is cleared automatically
when connections are idle or closed by server. To force the operation call ClearPool or
ClearAllPools methods. Another solution is to disable the pool at all (set Pooling=false
in connection string). If this does not help, the problem is not caused by pooling.
|
| Documentation problems |
How to open documentation on SQLDirect .NET?
There are several ways to open SQLDirect .NET documentation:
- Use appropriate shortcut in start menu, for instance,
Start - Programs - Core Lab SQLDirect .NET - SQLDirect .NET documentation.
- Use command in the IDE: Tools - SQL Server - SQLDirect .NET Help.
- Position cursor on some class from CoreLab.SqlDirect and press F1.
There is also same documentation in chm format. You can download it from our site at the following address:
www.crlab.com/sqlnet/sqlnet.chm
I can't see the documentation in Visual Studio Help Collection.
Correctly installed documentation appears as separate node in combined collection
of Visual Studio and Borland Delphi. If you can't find SQLDirect .NET node
there it is because you enabled topics filtering. To reveal the node set filter to "Core Lab
Documentation", or "(unfiltered)", or "Visual C#", etc.
Another possible reason is that you installed some IDE after installation of SQLDirect .NET.
In this case use aforementioned methods to reach documentation.
All topics in CHM file are blank.
This can happen due to some patches from Microsoft installed on your system.
Please read this page to find possible solutions
for the problem. In most cases it is enough to right-click on the CHM file, select Properties, click on the
"Unblock" button and click "Apply" to show the contents.
|
| Miscellaneous |
How to obtain autogenerated value of autoincrement field after INSERT statement?
There are several ways to do it:
- Execute SELECT @@IDENTITY statement.
I get concurrency error when modifying records using SqlDataAdapter
or SqlDataTable. What can be wrong?
This can happen when SqlCommandBuilder generates a query without primary key field.
To avoid it use custom update command instead of generated by SqlCommandBuilder.
This problem should not take place if primary key field participates in SELECT statement.
No components can be found in the toolbox.
This can happen if the installation encountered some problems. You can add the
components to toolbox manually. This procedure is described in the Installation article
in the documentation. Note that Microsoft Web Developer 2005 Express edition does not allow to
work with windows components at all.
SQLDirect .NET components in Visual Studio .NET 2005 or in Visual Web Developer are grey...
This relates to Web projects only. Make sure you're in Component Designer view. Do not confuse with Designer
view. To switch between views use context menu of .aspx file in Solution Explorer.
|
|