Concurrent (completely Independent) Statements.

Aug 31, 2007

Hi!

We are migrating an DB2 database to sql server 2005. We have used the 1.2 jdbc driver. It consumes lots of memory when we have several resultssets opened on different statments. Then we tried JTDS (http://jtds.sourceforge.net/), it worked fine. It's supports concurrent staments. We would like to stick with microsofts driver. My question is: will we se this supported in microsofts driver (soon)!

Joachim

View 2 Replies


ADVERTISEMENT

What Is An Independent Transactions In SQL??

Jan 24, 2008

Hi
I want to know what is an Independent transaction in sql?? What is this?? Where we can use or where it is prffered to use them, is there any performance los if we are using these transactions?? means i wann know all about Independent transactions, I serched gooogle a lo but not able to find out anything usefull.
Please help me. thanks.

View 6 Replies View Related

Problem Creating Function To Be Schema Independent

Apr 1, 2008

I am writing a SQLServer script that I want to be schema name independent. I mean I know that all users of the script will have the same tables, but not necessarily the same schema name.

When I hard code the script to use the name of my schema, wcadmin, it works OK.

CREATE FUNCTION wcadmin.dectohex(@a numeric)
RETURNS varchar(8)
BEGIN
DECLARE @x varchar(8)
DECLARE @y varchar(1)
DECLARE @z numeric
DECLARE @w numeric

SET @w=@a
SET @x=''

WHILE @w > 0
BEGIN
SET @z = @w % 16;

SET @y= CASE @z
WHEN 10 THEN 'A'
WHEN 11 THEN 'B'
WHEN 12 THEN 'C'
WHEN 13 THEN 'D'
WHEN 14 THEN 'E'
WHEN 15 THEN 'F'
ELSE CAST(@z AS varchar)
END

SET @w = ROUND(@w/16,0,1)
SET @x = @y + @x
END

-- Pads the number with 0s on the left
SET @x = RIGHT(REPLICATE('0',8) + @x ,8)
RETURN @x
END;
GO

select 'WTDOCUMENT' HOLDER,
dm.WTDocumentNumber ITEMNUMBER,
dm.name ITEMNAME,
ad.fileName ContentFilename,
fh.hostName VaultHost,
wcadmin.dectohex(fi.uniqueSequenceNumber) VaultFile,
fm.path VaultPath
from
WTDocument di,
WTDocumentMaster dm,
HolderToContent hc,
ApplicationData ad,
FvItem fi,
FvFolder ff,
FvMount fm,
FvHost fh
where di.idA3masterReference = dm.idA2A2
and fm.idA3A5 = ff.idA2A2
and fm.idA3B5 = fh.idA2A2
and fi.idA3A4 = ff.idA2A2
and ad.idA3A5 = fi.idA2A2
and hc.idA3B5 = ad.idA2A2
and hc.idA3A5 = di.idA2A2

DROP FUNCTION wcadmin.dectohex;
GO

But when I remove my schema name I get the error

'dectohex' is not a recognized built-in function name.

In this case I'm just using :-

CREATE FUNCTION dectohex(@a numeric)
.
.
.
.
select 'WTDOCUMENT' HOLDER,
dm.WTDocumentNumber ITEMNUMBER,
dm.name ITEMNAME,
ad.fileName ContentFilename,
fh.hostName VaultHost,
dectohex(fi.uniqueSequenceNumber) VaultFile,
.
.
.
.
DROP FUNCTION dectohex;

Creating and dropping the function seems to work OK when I drop the schema name, I just can't call it.

I've been trying various permutations of dbo and [dbo] prefixes unsuccessfully.

Any suggestions?

Thanks


David

View 5 Replies View Related

Two Independent Drill Downs In Matrix Report

Jan 16, 2007

I have defined the following to generate a matrix report

1. Row data: Country,region,state,Race,gender

(Red colored columns - Group1;

Blue colored columns - Group 2)

2. Column Data: Statistics as of (Date)

3. Value: household income

I'd like to be able to have a seperate drilldowns on group1 and group2. i.e drilling down on country, region, state shouldn't automatically expand/minimize race and gender. I played with the attributes of individual columns and edit groups of the same. But couldn't achive an independent drill down.

Income as of '05 Income as of '06

Country Region State Race Gender 100k 105k



Having independent drilldown on the group1 and 2 enables us to find out, for example, how many hispanics live in the region west coast. (in a typical tree like drill down, you need to expand country, region and state to get to Race)

How can create an independent drilldown on group1 and group2?

View 5 Replies View Related

Co-existence Of Log-Shipping And A Independent Backup Strategy

Dec 19, 2007

We have a critical Production database on which we want to setup Log-Shipping. We have also purchased the Symantec NetBackup utility for taking Backup to Tape Drives.
We Know that there are some inherent problems with using Log-Shipping and a Backup Strategy together, and thus we were finding out various ways in which we can run both in tandem.

One of them was taking the Symantec Log backups with Copy-Only option.
The main problem with this is that the Symantec Backups becomes dependent on the Log-Shipping Backups and also most of their Log-Backups become useless. Also, we are not sure whether the utility allows Copy-Only backups

The second alternative was to disable the Backup job of Log-Shipping on the Primary Server and to use the Log-Backups done by the Symantec utility for performing the Restores on the Secondary.


Thus, if Log-Shipping is scheduled to run say every 4 hrs, and the Symantec Log-backup happens every 1 hour, then at an interval of every 4 hrs, the Restore Job on the secondary will pick up the 4 backups done by the Symantec Backup utility and Restore each one of them in sequential manner.
But, I guess it is not easy to have a manual Restore Policy in place.
I was really banking on this solution until I found that the Restore Job of the Log-Shipping setup is dependent on the Filename of the Transaction log file which the systems generates automatically, and it won€™t be easy to create a customized Restore Job on the secondary server which takes in all the Log Backups generated by the Symantec Backup utility and Restore the Secondary database.

Have any one of you ever face this issue? Would like to know what is the best way to keep both of them running together.

View 3 Replies View Related

CE 3.5 SDK For Native (C/C++) Development (independent Of Visual Studio 2008)

Jan 27, 2008

Hi All-

It appears Microsoft has bundled SQL Server Compact Edition 3.5 SDK for C/C++ development as part of Visual Studio 2008 and is NOT available for download as an independent entity (as 3.1 SDK is).

Is there a work around?

Thanks.

View 3 Replies View Related

How To Create A Second Independent Transaction Inside A CLR Stored Procedure?

Nov 29, 2005

I use the context connection for the "normal" work in the CLR procedure.

View 7 Replies View Related

SQL Select Query Need For Following Criteria. Please Help, Retrieve Records With Independent Price And Its Total Volume Per Min

Jul 17, 2006

Time       Price   Volume
090048       510      6749
090122       510      2101
090135       510      1000
090204       505      2840
090213       505      220
090222       505      1260
090232       505      850
090242       505      200
090253       510      1200
090313       510      570
090343       510      250
090353       510      160
 
Criteria
Retrieve records with independent price and its total volume per minute
 
SELECT SUBSTRING(st,1,4) AS Ttime,d_price AS Price,SUM(l_cum) AS Volume FROM cmd4
WHERE sd='20060717' AND serial='0455'
GROUP BY SUBSTRING(st,1,4),d_price,l_cum
 
Result of the above query: -
Time  Price Volume                 
0900    510     6749
0901    510     1000
0901    510     2101
0902    505     200
0902    505     220
0902    505     850
0902    505    1260
0902    505    2840
0902    510    1200
0903    510    160
0903    510    250
0903    510    570
 
 
THE FOLLOWING RESULT STILL NOT A TOTAL FOR A MINUTE]
E.G
 
0901    510            1000
             +
0901    510            2101
            =         
0901    510            3101 <- I NEED THIS
 
Can any one advice or give me tips over this. Please
 

View 3 Replies View Related

Am Completely Lost

Jun 10, 2006

Hello all let me first start out by saying I suck at SQL.  I can do quite a bit with ASP.NET but SQL Server is on area that has haunted me and I have finally decided to bite the bullet and figure this behamouth out.Well here is my first problem, which is the biggest reason I can't seem to understand SQL Server or dataases in general.To have a realtional database you set up tables with foriegn keys and primary keys referenceing the id's like product table has a product name and one of the columns is a user_id displaying the id number of the user in the user table.  From what I can tell you are supposed to set up the user_id in the products table a foriegn key to the Primary Key in the user table.   I may be totally wrong on this though.Now my biggest question is how do you retrive this information the proper way to get it ready to be displayed in a gridveiw or a datalist?  I have been reading SQL Server 2005 for developers and reading online tutorials and it seems like they say you need to set up a relationship and because of the realtionship you don't need to do a join, but I never hear how to use the relationship at all.Please someone help I am so totally lost that i feel like i will never understand. I have spent the last week trying to figure this out and I guess I am just googleing this wrong completely or i am incompentent one of the two.Thank you.

View 1 Replies View Related

How To Completely Remove MSDE

Mar 1, 2004

I need to completly remove MSDE from my PC it was installed using Install Shield Express and when I try to uninstall, I get a Fatal error durring installation. There must be a way other than reformatting?

Thank you,

View 1 Replies View Related

Won't Let Me Completely Install The Server. PLEASE HELP!

May 23, 2005

I installed sql2ksp3 from the CD I received in my ASP.net book. The installation went fine and then I went to the DOS prompt and did the setup SAPWD and it ran. I restarted my computer and opened ASP Matrix and went to the Data tab and proceed to connect to the server. It gave me an error message it couldn't connect. So I uninstalled MSDE and made sure the sql2ksp3 folder was gone. So I went ahead and installed the sql2ksp3 from the CD again and then went to DOS to do the setup. It ran through the setup until the very end, saying it couldn't setup the server. I have tried it several times and it always stops around 11 seconds. I have tried to install the download from microsoft instead the CD and that didn't work also. So at this point I am stuck. PLEASE HELP!

View 7 Replies View Related

How To Remove Replication Completely?

Sep 25, 2001

When i uninstall replication, it failed to remove completely. How do i remove them completely. so that make replication again

I would appriciate any help.

Thanks in advance

Yads

View 1 Replies View Related

Completely Remove SQL 2005

Aug 30, 2007

Hi,
Can any 1 guide me how to completely remove SQL 2005 ?

Currrently i have a problem to install SQL 2005 where before this i already install SQL 2005 and uninstall it and delete some of the file inside the SQL folder, after that i reinstall the SQL 2005 and it get many error while installing.

Can some 1 guide me how to unintall it completely?

PS: im using Vista

View 2 Replies View Related

Completely New To SQL Server 2000

Oct 16, 2006

Hello, I have installed Enterprise edition. I used Client Network Utility to create a server. I went into Enterprise manager and tried to register this server I created and I got the following error:
Specified SQL Server not found

What should I do?

View 20 Replies View Related

Does SQL Work Completely In Memory

Feb 1, 2008

Assume you have a query SELECT Column1 from Table WHERE Column2 = 'x' Say you have a non-clustered index on Column2. The engine is going to load the non-clustered index into memory to search for that record then do a lookup to the clustered index to grab column one also but quickly becuase it knows the RowID.. Right?

Is that safe to assume that every table that is queried would need to be in memory? ie the buffer pool? So if I have a table that has 2 million records, any operation on that data requires the table to be in memory?

View 6 Replies View Related

Can I Have Replication Between Two Completely Different Schemas?

Feb 22, 2007

Hi SQL guys,

I have 2 different databases and an import tool that reads from one and fills the other one and then whenever we run it, it should synch the two databases and its kind of a heavy task. I was wondering if i can replace it with replication between these databases. I defined publisher and subscriber, but i cannot find anywhere that i can say which field in source maps to which field in destination.

Is it possible at all to have a replication between 2 databases with totally different schemas? If so, please let me know how.

Thanks,

Sina

View 4 Replies View Related

Uninstalling SQL 2005 Completely

Apr 18, 2006

hi all,

i have gone through the thread which had the same subject but still it didn't work out..

i have even removed SQL 2005 install bits using msicuu2.exe but still i can find SQL 2005 in my programs list in start menu....

Can anyone please let me know how i can remove SQL 2005 completely when it does not show up in Add/Remove programs and WindowsInstaller Cleanup Tool but i can still find it if i navigate to Start --> All programs --> Microsoft SQL Server 2005......

regards,

View 15 Replies View Related

How Can I Completely Delete A CE Table?

Aug 28, 2007

I have an application created with VS 2005 and VB 2005 using a Compact Edition Database. I created some tables that I no longer use or want. How can I permanently delete them from the database?

View 1 Replies View Related

DTS Packages Not Migrating Completely

Jun 28, 2007

Hi, I upgraded several of my SQL 2000 database to SQL 2005 databases. I'm in the process of migrating over the DTS packages over to SSIS packages. I'm using the DTSMigrationWizard utilty to do this migration. When I started testing the SSIS packages I've discovered that not all the steps were being excuted. So I've noticed on several of the packages not everything migrated over. Such as connections to oracle and some of the task as well did not migrate over. Is there a way to migrate the entire DTS package to SSIS or do I have to re-create the entire package from scratch or is there a better way to get the SQL 2000 DTS packages over to SQL 2005 and have them run successfully?







View 3 Replies View Related

How Do You Uninstall SQL Express Completely?

May 24, 2008

Hello Win XP Pro, SP3 ,.Net 1.1,2.0,3.5, ASP.Net 2.0.

I made the mistake of trying to install SQL Server 2005 Express Edition with Advanced Services as a requirement to install dashCommerce. That was a big mistake. It never installed and it screwed up my current install of SQL Server 2005 Express Edition.

I have been trying for two days now to get my SQL Server 2005 Express Edition back to normal. I can't run and test my programs in VS2005 that use SQL anymore and it's keeping me from getting my work done.

I tried uninstalling everything SQL using Add Remove Programs. Deleted all temp, SQL and unneeded files. Ran defrag. Restarted my computer. I did all that three times and still am unable to install SQL Server 2005 Express Edition.

On the existing components screen, i get the message "The following components that you chose to install are already installed on the machine. To view a report of available options and alternatives click on details."

It won't allow me to check any options and when i click next, it gives the error "None of the selected features can be installed or upgraded. Setup cannot proceed since no effective change is being made to the machine. To continue, click Back and then select features to install. To exit SQL Server Setup, click Cancel"

All i can do is cancel out of it.

Any help from anybody to figure out why i can't install SQL Express again would be gratefully appreciated.

This problem is keeping me from doing my work, it's frustrating. Is there a way to totally clean my machine of any SQL so i can get back to doing my job?

Thanks,
Tony

View 6 Replies View Related

Completely Script SQL 2005 Database

Oct 18, 2006

Hi Everyone, what im looking for is a way or a freeware utility that will genereate a single SQL Script, for my entire db...

Just like phpMyAdmin does for MySQL...

it would need to script my tables, the data of those tables, and all my stored proc's.

Can SQL Server management studio do this? or does anyone know of a utility that will.

Thanks, Justin

View 5 Replies View Related

Finding Completely Overlapping Segments

Jun 5, 2008

ok folks, I need help.

Here's the table and some sample data:


declare @t table
(
segment int,
subsegment int,
primary key (segment,subsegment)
)
insert @t
select 1,33 union all
select 1,22 union all
select 2,33 union all
select 2,22 union all
select 3,33 union all
select 3,22 union all
select 3,44


What I want is to find all segments that are in some sense complete duplicates of other segments. a segment is made up of subsegments. a subsegment is not a segment - it's a completely different entity. this table is not hierarchical.

So in the sample data above, segments 1 and 2 are dupes because they share exactly the same subsegments: 22 and 33. Segment 3 is not a dupe because it has a third subsegment the other two don't have: 44.

when a duped segment is found, I need to know which other segment it duplicates. so an acceptable result set for the above sample data would be:


segment partner
------- -------
1 2


this would also be fine:


segment partner
------- -------
1 2
2 1


ps: i already posted this on dbforums - just broadening the audience a little.

elsasoft.org

View 20 Replies View Related

Completely Uninstall Sql Server 2005

Oct 9, 2007

i need help for completely removing sql server 2005 from my computer,in order to reinstall it again.

please help me

View 3 Replies View Related

Completely Remove Sql Server 2005

Oct 9, 2007

I need help for completely removing sql server 2005 from my computer.
I have tried unintalling it through Add/Remove programs,but when i try to reinstall it this message appears :
"Some components of this edition of SQL Server are not supported on this operating system. For details, see 'Hardware and Software Requirements for Installing SQL Server 2005' in Microsoft SQL Server Books Online."
I think that there is something that is not completely removed from the first installation.

View 15 Replies View Related

How To Completely Uninstall SQL 2005 Std On Vista?

Aug 4, 2007

I have just migrated from XP Professional to Windows Vista Home Premium using Laplink€™s PCMover. PCMover gives no choice but moving everything to the new PC. I tried to uninstall everything related to SQL 2005, but whenever I try to install SQL 2005 Standard€™s database engine or analysis service, I get an error saying there is already an instance.


I tried the following command:
"%ProgramFiles%Microsoft SQL Server90Setup BootstrapARPWrapper.exe /Remove


I also tried:
start /wait msiexec /x {GUID} /l*v c:sql_uninstall.log

Is there anyway to completely uninstall everything of SQL 2005 in my situation?
Thanks in advance!

View 1 Replies View Related

Web Service Will Not Completely Run SSIS Package

Oct 20, 2006

Hi,

After many days of searching i have eventually been able to set up a web service to call and execute my SSIS package. The SSIS package is set up completely with windows authentication,the web service is run from an application using the same credentials with all necessary access for the SSIS package. I can run the package from the SQL management studio and it works fine, however when i attempt to run it from the web service it appears to work once round the for each loop and then fails for every other time. The error i am getting is as follows:


Executing the query &quot;Set ? = (select max(URC_ID) AS URC_ID FROM


VIEW_A1021_URC


WHERE SerialNumber = ?)


&quot; failed with the following error: &quot;Syntax error, permission violation, or


other nonspecific error&quot;. Possible failure reasons: Problems with the query,


&quot;ResultSet&quot; property not set correctly, parameters not set correctly, or


connection not established correctly.


This error doesn't happen on the first iteration, as the package does exactly what it is supposed to do.

Has anyone encounter anything like this before? any help on this matter would be great.

Many thanks in advance,

Grant

View 1 Replies View Related

SQL Float Operation With Round() Fails Completely

Jul 20, 2005

Hi,we found some strange behavior when operating with floats and round().The following simplified statement reproduces the problem.select 6.56 - round(convert(float, 6.56), 2)from sysusers where name = 'public';===========-8.88178419In "real world", the floats are not literals, but float fields in tables.I could figure, that 6.56 - 6.56 will result in something like 0.00001,but -8.88178419 is beyond my imagination.The same statement without round results in 0.Has anyone any clue on this?Regards,Peter

View 5 Replies View Related

Cannot Completely Install/remove SQL Server Express

Jan 20, 2007

I cannot use, remove, or reinstall Microsoft SQL Server 2005. Although Microsoft SQL Server 2005 and Microsoft SQL Server Setup Support Files appear in ControlPanel-ARP, when I attempt to remove Microsoft SQL Server 2005, the workstation component remains. If I try to download and reinstall Microsoft SQL Server Express from the Microsoft website, the download does not install completely as described below.

My current situation is much better than the previous incompatibility or configuration problems I had been experiencing between Microsoft Office Small Buisness Accounting 2006, Microsoft Office Outlook 2003, Outlook Business Contact Manager, Microsoft SQL Server 2005 (express edition installed in conjunction with Visual Basic 2005 express), and Microsoft SQL Server Desktop Engine (installed in conjunction with Small Business Accounting 2006). The problems and error messages previously included: 1) A consistent bootup error (Net service configuration error...The specified service does not exist as an installed service); 2) The inability of Visual Basic to connect to an instance of SQL server (An error has occurred while establishing a connection to the server...); 3) a SQL server configuration manager error: Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 servers with SQL server configuration manager. Invalid namespace [0x8004100e]; and 4) SQL server management studio express error: Cannot connect to <computername>SQLEXPRESS... An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1).

These problems have been partially solved by: 1) completely removing Small Business Accounting 2006, Outlook Business Contact Manager Update, and MSDE (which appear to be codependent); and 2) removing and reinstalling Visual Basic 2005. However SQL Server still cannot be completely removed or reinstalled and therefore Visual Basic cannot connect to SQL datafiles.

When I most recently tried to remove SQL server 2005 using ARP, the installer reported that only the workstation component remains (Version: 9.00.1399.06 Edition: Express Edition Patch level: 9.00.1399.06), but is not removed by the ARP process. When I most recently tried to install SQL server 2005, the Setup Support Files install correctly, the System Configuration Check passes, but setup fails for MSXML6, SQL Server Database Services, and WorkStation components Books Online (detail log SQLSetup0068 file). According to Add/Remove programs, the following applications are installed:

Microsoft Visual Basic 2005 Express Edition ENU
Microsoft SQL Server Native Client
Microsoft SQL Server Setup Support Files (English)
Microsoft SQL Server VSS Writer
Microsoft SQL Server 2005
Various MSXML versions

Any help in un/reinstalling or configuring Microsoft SQL Server 2005 for use with Microsoft Visual Basic 2005 Express Edition would be dearly appreciated. Thanks.

View 2 Replies View Related

Convert String To Date Independent Of Date Format

Feb 15, 2008

Hi,

I Have this simple convertion in a Script component


Dts.Variables("dateOfProcess").Value = CDate(lineMCF.Substring(30, 2) + "/" + lineMCF.Substring(28, 2) + "/" + lineMCF.Substring(24, 4))



this works fin in my development environment which has a spanish version of SQL Server and uses "DD/MM/YYYY" as date format.

but the production environment has an english version of SQL Server and "MM/DD/YYYY" date format, so the package crashes in this server.


How do I convert the string to date not depending on the SQL server language.

thanks.

View 2 Replies View Related

Holy Crap, SQL 2005 Installer Completely Sucks

Feb 28, 2007

There appears to be no way to prevent SQL 2005 from installing roughly 1.5GB of stuff on the C: drive - even if you click that advanced button and select a different drive for all the components.

I can't find an easy way around this, other than rebuild the C: drive on a bunch of systems. Anyone have any other ideas?



-ec

View 9 Replies View Related

Re-Installation Problem (prev Installations Not Removed Completely)

Jul 14, 2006



I have installed SQL server 2005 on Win SERVER 2003, then uninstalled and then re-installed but I have found out that the previous instances are still listed and the the previous collation too (I have changed reg setting and and language option re-installation).

It looks like that removing program does not remove completely every object, probably registry values

Do you know how to perform a good uninstallation removing everything (add/remove program does not work properly as written before) ?

Any help will be very appreciated.



Thank



View 2 Replies View Related

SQL 2012 :: Migration From Access Database Completely To Query For A Report?

Jan 15, 2015

we want to completely do away with access, on my report tool,which is crystal report, we want query to be our data source so , we do not want to use ssis packageor import from access to sql, how can l handle bringing all table and the query from Access together.

View 1 Replies View Related

Reporting Services :: Overlay Content Does Not Render Completely When Exporting To PDF

Apr 10, 2015

I have a report with an overlay image & textboxes. This is a government form. The report render well in html. But, when exporting it to PDF the first 17 pages rendered well and the subsequent pages (the report is a 155 pages long) didn't. From page 18+, a blank page appears until the end.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved