Uploading data simultaneously in sql server 2008

Hi All,
I have a scenario like multiple users loading different data into a tool.Till now my scripts were allowing 1 user to load a data at a time. Now it should allow many users to upload their data simultaneously(or atleast the illusion that the data is being
uploaded at the same time).
IF tables are being locked during an import then as soon as the table is unlocked user 2's data should start processing.
If table locking must occur, l should lock the table until that table is finished being updated. This is the case,First user loads XL spreadsheet which has data into the tool. once it is loaded and import is clicked , In database first 
Assetstaging -------->Centerlinestaging------->Misc_asset are populated these are the main tables which populates first. Then my procedures get executed. At this point i should restrict ,i.e User1 loads the data main table populates,at same time user
2 loads data ,So how will i handle this kind of scenario? I got a hint using locking concept i should do, I am not aware about that..is there any way i can do please help me.I am new to to this.
Deepa

1. First application accepts an XL spreadsheet which has a bulk data
2. Once import is done Staging tables are loaded first. Till now only one user was able to load the data. Now requirement is like multiple users should load different data. I should lock at staging tables. 
I dont have any idea about locking concept. How can i lock the staging table? what should i do when other users are also loading data at same time?
Below is the staging table structure
CREATE TABLE dbo.Misc_AssetTypeStaging
    Point                 int                NULL,
Misc_AssetType        varchar(100)       NULL,
BeginMilepostPrefix   varchar(5)         NULL,
BeginMilepostSuffix   varchar(5)         NULL,
BeginMilepost         decimal(15, 8)     NULL,
BeginTrackName        varchar(20)        NULL,
BeginLatitude         decimal(15, 8)     NULL,
BeginLongitude        decimal(15, 8)     NULL,
BeginElevation        decimal(15, 8)     NULL,
EndLatitude           decimal(15, 8)     NULL,
EndLongitude          decimal(15, 8)     NULL,
EndElevation          decimal(15, 8)     NULL,
EndMilepostPrefix     varchar(5)         NULL,
EndMilepostSuffix     varchar(5)         NULL,
EndMilepost           decimal(15, 8)     NULL,
EndTrackName          varchar(20)        NULL,
SubdivisionName        varchar(20)       NULL,
Direction             varchar(16)        NULL,
    Speed                 int                NULL,
TrainType             varchar(20)        NULL,
Operator              varchar(2)         NULL,
QualifierType         varchar(15)        NULL,
RestrictionParameter  int                NULL,
RestrictionType       varchar(20)        NULL,
FBARDirection        varchar(16)        NULL,
SignalAuthorityType  varchar(16)        NULL,
YardLimits           varchar(1)         NULL,
CabSignalType        varchar(16)        NULL,
PTCType              varchar(15)        NULL
Please help me.Thanks in advance
Deepa

Similar Messages

  • Data services with SQL Server 2008 and Invalid time format variable

    Hi all
    Recently we have switched from DI on SQL Server 2005, to DS(Date Services) on SQL Server 2008. However I have faced an odd error on the query that I was running successfully in DI.
    I validate my query output using a validation object to fill either Target table (if it passes), or the Target_Fail table (if it fails). Before sending data to the Target_Fail table, I map the columns using a query to the Target_Fail table. As I have a column called 'ETL_Load_Date' in that table, which I should fill it with a global variable called 'Load_Date'. I have set this global variable in the script at the very first beginning of the job. It is a data variable type:
    $Load_Date = to_char(sysdate(),'YYYY.MM.DD');
    When I assign this global variable to a datetime data type cloumn in my table and run the job using Data Services, I get this error:
    error message for operation <SQLExecute>: <[Microsoft][ODBC SQL Server Driver]Invalid time format>.
    However I didn't have this problem when I was running my job on the SQL Server 2005 using Data Integrator. The strange thing is that, when I debug this job, it runs completely successfully!!
    Could you please help me to fix this problem?
    Thanks for your help in advance.

    Thanks for your reply.
    The ETL_Date is a datetime column and the global variable is date data type. I have to use the to_char() function to be able to get just the date part of the current system datetime. Earlier I had tried date_part function but it returns int, which didn't work for me.
    I found what the issue was. I don't know why there were some little squares next to the name of the global variable which I had mapped to the ETL_Date in the query object!!! The format and everything was OK, as I had the same mapping in other tables that had worked successfully.
    When I deleted the column in the query object and added it again, my problem solved.

  • Problem in creating DATA Model from SQL SERVER 2008 in BI PUBLISHER

    Dear Team,
    I connect BI Publisher with SQL SERVER 2008 But On creating Report on BI,when we create data model...dataset,
    i select the tables but when i click on RESULT i am geting this error.
    error--
    [Hyperion][SQLServer JDBC Driver][SQLServer]Invalid object name 'DBNAME.DBO.TABLE'.
    please resolve this problem...
    Thanks,
    Him
    Edited by: h on Aug 22, 2011 6:31 PM

    Hi David,
    The things I said are not a fix for this problem.
    If your RCU installation worked, then you do not have to worry about modifying the createfr.sql.
    Edit:
    I've just tracked the problem. It appears that when using the query builder, BI forgets to add the " sign.
    For example:
    This query will give the hyperion error.
    select     "table"."field"
    from     "database.user"."table"
    To correct it write it like this:
    select     "table"."field"
    from     "database"."user"."table"
    Edited by: EBA on Nov 14, 2011 10:21 AM

  • SQL Developer Data Modeler for SQL Server 2008

    I am not able to connect to my SQL Server 2008 from the SQL Developer Data Modeler. Although I do have jtds-1.2.jar on my machine and I can connect the SQL server through the SQL Developer, but still i'm not able to connect through the data modeler. I need to re-engineer and generate data model for some existing schemas.
    Here is what I'm following:-
    File->Data Modeler -> import -> Data Dictionary -> Add new connection -> JDBC ODBC Bridge -> Other Third Party Driver
    now when I'm giving the JDBC URL and the Driver, It throws an error message stating that the driver could not be found.
    Please let me know what I can do to solve this, any help would be appreciated.
    Regards,
    AVA

    I'd try 1st to connect to the db from sqldeveloper (through jtds - no ODBC involved) and see if you can browse your db and issue sql statements in a worksheet. Then export that connection in xml format and import that from the modeler.

  • Creating Data Source to SQL Server 2008 in SharePoint Designer 2013

    Hello,
     I have been trying to create a Data Source connection to a SQL Server 2008 Database. I use a custom string and I choose the table to display and hit ok. When I try to click on the connection to edit it I get the following error.

    Hi Derek,
    According to your description, my understanding is that the error occurred when you edited the Data Source connected to SQL Server.
    How did you create the Data Source connected to SQL server using custom string?
    I recommend to connect to the database by saving the user name and password to see if the issue still occurs.
    More information are provided in the link below:
    http://office.microsoft.com/en-us/sharepoint-designer-help/add-a-database-as-a-data-source-HA010355745.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Big data Implementation in sql server 2008 r2

    Can Some one please explain what is big data and implementation of big data or usage of big data with clear explanation, Screen shots will be more helpfull.
    Thanks in Advance.
    Tanks,
    G.Satish Reddy.

    Can Some one please explain what is big data and implementation of big data or usage of big data with clear explanation, Screen shots will be more helpfull.
    Unfortunately, the data is to big to fit into a screenshot. :-)
    Big data is one the most recent buzzwords in the computer industry. SQL 2008 R2 is not a good tool to work with big data.
    Big data is about analysing patters in big amounts of data, often semi-structured or unstructured. Places like Facebook, Google, Amazon spend a lot of time in analysing click logs to see which pages you went to and from, in that way they can predict your
    interest.
    Much of the Big Data analysis is performed with Hadoop, which is an open source offering that works on a non-relational database. Someone mentioned PDW as Microsoft's offering in the space, but Microsoft works with Hadoop as well, and they also marry
    them together.
    Anyway, if you relaly want to get a grip what this is all about, listen David DeWitt's excellent keynote from the PASS Summit 2011. You will have to register and become a member of PASS if you aren't already. PASS is free and it is a non-profit organisation
    for SQL users world-wide.
    http://www.sqlpass.org/summit/2011/live/livestreaming/livestreamingfriday.aspx
    Erland Sommarskog, SQL Server MVP, [email protected]

  • JDeveloper 11.1.1.2.0 - Panel Dashboard using Data from SQL Server 2008

    Hi All,
    I am using JDeveloper 11.1.1.2.0 and am trying to create a cross application dashboard. This dashboard would show 2 panel's of data from an Oracle Database (Already completed this) and two panel's of data from a SQL Server 2008 Database.
    I have successfully installed a SQL Server 2008 database locally on my machine. I have downloaded the JDBC drivers from the Microsoft website and I have two JAR Files:
    * sqljdbc.jar
    * sqljdbc4.jar
    I have created a SQL Server connection within the JDeveloper connections panel and I can successfully query my database.
    I have created a New application module and set its connection to a JDBC connection with the credentials specified within the Connections tab. I then added the two JAR files as libraries to the Model project and
    ran the Application Module tester. This succesfully shows some records.
    Within the View Project I Created a new page and dropped the View Object on as a table. I then go to Run the page and get an error relating to the JDBC drivier not being found. I have read a few posts about adding it to Weblogic lib files and modifying the start up scripts but can anyone give me a definitive working solution? I also tried changing my Application Module to using a DataSource, but I also have the same problem within the Weblogic console (it cannot create a data source for SQL SERVER as it does not have the drivers).
    Any help is greatly appreciated.
    Thanks

    Thanks for the responses.
    I have edited C:\oracle\Middleware\wlserver_10.3\common\bin\commEnv.cmd to add the entries as follows...
    set WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%BEA_HOME%\utils\config\10.3\config-launch.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;%FEATURES_DIR%\weblogic.server.modules_10.3.2.0.jar;%WL_HOME%\server\lib\webservices.jar;%ANT_HOME%/lib/ant-all.jar;%ANT_CONTRIB%/lib/ant-contrib.jar;%WL_HOME%\server\lib\sqljdbc.jar;%WL_HOME%\server\lib\sqljdbc4.jar
    You can now see the additional entries at the end of the classpath.
    The Weblogic home is set as follows set WL_HOME=C:\oracle\Middleware\wlserver_10.3
    I have placed the files in C:\oracle\Middleware\wlserver_10.3\server\lib
    I restarted the server. Logged into the Weblogic console and tried to create a datasource with the Microsoft Drivers but still no luck. I gave the Oracle Microsoft Driver a go and it seemed to work! I'm guessing that there is a driver bundle in.

  • Utility data collection job Failure on SQL server 2008

    Hi,
    I am facing data collection job failure issue (Utility-data Collection) on SQL server 2008 server for, below is the error message as  :
    <service Name>. The step did not generate any output.  Process Exit Code 5.  The step failed.
    Job name is collection_set_5_noncached_collect_and_upload, as I gothrough the google issue related to premission issue but where exactly the access issues are coimng, this job is running on proxy account. Thanks in advance.

    Hi Srinivas,
    Based on your description, you encounter the error message after configuring data collection in SQL Server 2008. For further analysis, could you please help to collect detailed log information? You can check the job history to find the error log around the
    issue, as is mentioned in this
    article. Also please check Data Collector logs by right-clicking on Data Collection in the Management folder and selecting View Logs.
    In addition, as your post, the exit code 5 is normally a ‘Access is denied ’ code.  Thus please make sure that the proxy account has admin permissions on your system. And ensure that SQL Server service account has rights to access the cache folder.
    Thanks,
    Lydia Zhang

  • Import into SQL Server db from Sybase 7 data source - SQL Server 2008 R2/2012

    Hi,
    I need to import Sybase 7 data into a SQL Server 2008 R2 or 2012 database.
    Has anyone any experiences about this import?
    Thanks

    The nuance is in basically setting your connection manager right.
    If I remember correctly, I did that using the ODBC/ADO, but I do not remember the Sybase version.
    I suggest you visit a post dedicated to this operation (the author chose to use the ADO.NET type of a provider):
    http://msbimentalist.wordpress.com/2013/11/01/import-and-export-from-sql-server-to-sybase-db-using-ssis/ 
    Arthur My Blog

  • Creating the report in BI Publisher with SQL SERVER 2008

    Dear Team,
    I want to create report on BI Publisher....i am able to create report with the help of oracle database ...but i dont'nt know how to create DATA MODEL in sql server 2008 ...
    plz tell me the wright way....
    Thanks,
    Him..

    Hi Jin Chen,
    Thank you for your response. I have disabled all the Symantec End Point Protection Service, but problem persists..
    Further, I have checked through the ULS Log in SharePoint, there is more error reported there:
    11/03/2010 15:19:48.44 ReportingServicesService.exe (0x3510)  
    0x4064
    Windows SharePoint Services   Database                      
    6f8g Unexpected
    Unexpected query execution failure, error code 282. Additional error information from SQL Server is included below. "The 'proc_GetTpWebMetaDataAndListMetaData' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be
    returned instead." Query text (if available): "{?=call proc_GetTpWebMetaDataAndListMetaData(?,'F77D6A37-F8D2-492C-911C-923C8A135DEB',?,NULL,1,?,?,6187)}"
    11/03/2010 15:19:51.46 ReportingServicesService.exe (0x3510)  
    0x4064
    Windows SharePoint Services   General                      
    8e2s Medium  
    Unknown SPRequest error occurred. More information: 0x80020009
    11/03/2010 15:19:51.69 ReportingServicesService.exe (0x3510)  
    0x1EEC
    Windows SharePoint Services   General                      
    8e2s Medium  
    Unknown SPRequest error occurred. More information: 0x80020009
    Do you have any idea based on the error above?

  • Comments not imported from Data Dictionary of SQL Server. SDDM 3.3.0.747

    Hi,
    SDDM 3.3.0.747 32-bit on Windows 7 64-bit.
    Comments are not imported from Data Dictionary of SQL Server 2008. Connection through Microsoft JDBC Driver 4.0 for SQL Server or jTDS 1.2.7
    What I have tried? In SDDM DDL generation, Comments in DBRMS for SQL Server are generated with "EXEC sp_addextendedproperty 'MS_Description' , 'Test Comment' ..." so I added extended property named "MS_Description" into SQL Server database, both on table and column. None of them were imported from Data Dictionary into SSDM. I have tried both drivers stated above. Is it a bug or am I missing something?
    I've found similar question thread Re: Data dictionary import doesn't import column comments for SDDM 3.0.0.665, so I guess it is a bug when importing with JDBC drivers.
    MiGli
    Edited by: MiGli_1006342 on May 25, 2013 8:32 AM
    Edited by: MiGli_1006342 on May 25, 2013 9:02 AM

    Extended properties were not imported correctly from SQLServer databases at DM 3.3.0.747.
    Calls to sp_addextendedproperty and fn_listextendedproperty have been modified.
    I don't think it is a problem with JDBC drivers.
    A bug fix should be available in the next release of DM.

  • Update Script Issue in SQL server 2008 r2

    please see my below script whenever i run this script i got below error
    update Scmdb..StockAge set Age1=SUM(a.gr_lin_acceptedqty) 
    from scmdb..gr_lin_details a 
    where DATEDIFF(day,a.gr_lin_fadate,'2014-02-02')<90 
    and ItemCode=a.gr_lin_itemcode 
    and VarCode=a.gr_lin_itemvariant
    Error : An aggregate may not appear in the set list of an UPDATE statement.

    Hi,
    Please check this
    update Scmdb..StockAge set Age1=(SELECT SUM(a.gr_lin_acceptedqty)
    from scmdb..gr_lin_details a
    where DATEDIFF(day,a.gr_lin_fadate,'2014-02-02')<90
    and ItemCode=a.gr_lin_itemcode
    and VarCode=a.gr_lin_itemvariant)
    I hope this is helpful.
    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    MCSE Data Platform
    MCITP: SQL Server 2008 Administration/Development
    MCSA SQL Server 2012
    MCTS: SQL Server Administration/Development
    MyBlog

  • Dealing with the DATE data type in SQL Server

    As you know, a date is stored in SQL Server as "yyyy-mm-dd" when using the DATE data type.  This is also how it displays when I pull it into my Access front-end (even if I set the field's format to Short Date.)
    I'd like to be able to display it based on the user's regional settings.  I know I can use the FORMAT method in VBA to change it to mm/dd/yyyy, but I have users in other countries and I don't want to have to maintain a number of different versions.
    Any idea how I can automatically display the date in my MS Access form based on the user's regional settings?
    Thanks.

    Your solution, however, does not address the root of the problem. Access thinks it is a text field because there is no such thing as a 'Date' data type in Access. You will run into problems anywhere in Access, that you expect it to perform as
    a Date/Time field. E.G. sorting, filtering. 'Date' is one of the newer data types in SQL Server 2008+. You should be using SQL Server DateTime or SmallDateTime data type. Access will recognize those as a Date/Time data type and treat them accordingly.

  • To upload data from Ms-SQL into R/3

    Hi Guys,
    Suppose client have two systems one is R/3 and the other is MS SQL database server, now what is the ideal way of uploading the MS SQL data into R/3. Please let me know what are all the possible ways of uploading data from MS SQL server into R/3.
    Thank you,
    Venkat.

    Hi,
    For sender JDBC adapter,
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    ABAP Proxies,
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Regards,
    Bhavesh

  • SQL Server 2008 DTW Data upload in UDT

    Dear Expert,
    I am using SQL Server 2008 & SBO 2007 A PL 47 DTW version 2005.0.24. I want to upload data through DTW in UDT, but in Business Object Stage when I select the required UDT or any other UDT System gives an Error "Invalid Field Value"
    Please suggest
    Regards

    You may check this thread:
    Re: DTW Invalid Field Name
    Thanks,
    Gordon

Maybe you are looking for

  • Photoshop CS4 smart object template just overwrote a raw file - HELP

    So.  I've been working in Photoshop extensively for about 6 years now and I am well aware that nothing we do in Photoshop or Lightroom is supposed to overwrite a raw file.  I'm not talking about changing it to something a little lighter or darker, I'

  • Exchange 2013 SP1 RU4 Public Folder Permissions

    Hi All, Exchange 2013 SP1 RU4 Public Folder Permissions We have a weird problem after migrating our PF from Exchange 2010 to 2013. Users do not have permission to create or delete in PF even thou they have owner permissions. Example:- I have created

  • IPod nano RED Special Edition (2nd generation) Won't Charge

    Hi, I recently found my red ipod nano that I haven't seen in years while cleaning my room.  I don't remeber when I got it but know it was a very long time ago when I originally purchased it.  I plugged in one of my chargers into the ipod and plugged

  • Error in SAP B1 8.8 licensing

    Hi,  I have completed the installation of B1 8.8 version. I have downloded and applied the 8.8 license in license server but B1 is still in 31 days trial mode. Please help me to reosolve this issue.

  • VOX USB2.0 has no TV picture on Radeon 9100

    Expecting that MSI VOX USB2.0 TV tuner will be great solution for me (easy to exchange between PC and notebook) I was surprised founding that it can't work on my PC with on-board Radeon 9100 graphics (9100 IGP chipset on Asus P4R800-VM motherboard).