Least Cost Routing in SQL 2008

Anybody tried stuff like least cost routing in sql 2008? I have a small road network represented by linestrings in sql, and I'd like to find the shortest (or any other) route between two points. Anyone have some links to whitepapers... tutorials maybe?

I would like to perform routing in MS SQL 2012 which is going to be similar like pg routing ?
Actually in pgrouting I'll do the following steps to create a routable network.
1)
create a database routing with template "template_routing"
2)
create table "road_network" with following constraints
CHECK (st_ndims(the_geom) = 2)
CHECK (geometrytype(the_geom) = 'MULTILINESTRING'::text OR the_geom IS NULL)
CHECK (st_srid(the_geom) = 4030)
Then
-- @ CREATE INDEX FOR THE ROAD TABLE -------------------- IMPORTANT
CREATE INDEX spatialindex_road
 ON road_network
 USING gist
 (the_geom);
3)
Perform following queries
ALTER TABLE road_network ADD COLUMN "source" integer;
ALTER TABLE road_network ADD COLUMN "target" integer;
SELECT assign_vertex_id('road_network', 0.00001, 'the_geom', 'gid');
CREATE INDEX source_idx ON road_network("source");
CREATE INDEX target_idx ON road_network("target");
ALTER TABLE road_network  ADD COLUMN length double precision;
UPDATE road_network  SET length = length(the_geom);
ALTER TABLE road_network  ADD COLUMN reverse_cost double precision;
UPDATE road_network  SET reverse_cost = length;
ALTER TABLE road_network  ADD COLUMN x1 double precision;
ALTER TABLE road_network  ADD COLUMN y1 double precision;
ALTER TABLE road_network  ADD COLUMN x2 double precision;
ALTER TABLE road_network  ADD COLUMN y2 double precision;
UPDATE road_network  SET x1 = x(ST_PointN(the_geom, 1));
UPDATE road_network  SET y1 = y(ST_PointN(the_geom, 1));
UPDATE road_network  SET x2 = x(ST_PointN(the_geom, ST_NumPoints(the_geom)));
UPDATE road_network  SET y2 = y(ST_PointN(the_geom, ST_NumPoints(the_geom)));
alter table road_network add column cost double precision default 0;
update road_network set cost=0.1 where type='NH';
update road_network set cost=0.2 where type='SH';
update road_network set cost=0.3 where type='major';
update road_network set cost=0.4 where type='minor';
update road_network set cost=1.2 where type='colony';
update road_network set cost=0.8 where type='third';
4)
Now network table created
To check 
Run: 
run this query on ur postgreSQL....
assign table name name and create a table
CREATE TABLE shortest_path_astar_table_3(gid int4) with oids;
SELECT AddGeometryColumn( 'shortest_path_astar_table_3', 'the_geom', 4030, 'MULTILINESTRING', 2 );
INSERT INTO shortest_path_astar_table_3(the_geom) 
SELECT the_geom FROM astar_sp_directed('road_network',37,43,true,true);
Open "shortest_path_astar_table_3" on QGIS and check the path
Is there any similar way to perform similar queries in SQL ?

Similar Messages

  • Least cost routing using GMS Gateway

    Hi All,
    We have a GSM devices providing least cost routing on our PBX. We’re looking to fully migrate our phone system to Lync 2013 and I’m interested to know if there are any supported (single line) GSM Gateways.
    I’m looking to use it connected to our Lync server with no PBX. (Direct SIP)
    We only have a small number of users so routing all mobile calls out over the GSM gateway with a single line.
    Many thanks
    James

    I've heard some rumbling of AudioCodes having something
    http://www.audiocodes.com/solutions/fmc but I haven't messed with it and it looks like the devices would be overkill for you. 
    For Lync 2013, there are a small number of vendors and devices supported:
    http://technet.microsoft.com/en-us/lync/gg131938.aspx so I'd suggest reaching out.
    If there is nothing "supported" that doesn't mean there's not something that will work.  If it needs to be supported, you might have to doublehop between Lync and a supported device and the supported device and the GSM device. 
    My only suggestion unless someone chimes in with something more would be to get a supported device with analog ports such as an AudioCodes Mediant, and plug GSM to analog (FXS) devices in the ports.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • Least Cost Routing VoIP between CME sites - can it be done?

    Is it possible to configure LCR between two CME sites? I have two different CME's that are in two different states and would like to take advantage of the PSTN connections at both sites. I'm currently using h323 dial-peers for 4-digit dialing and toll bypass, but am not quite sure how to get site A to dial out site B's ISDN line for PSTN calls.
    I'm using CallManager Express at both sites.
    Any hints?
    Thanks.

    Mike,
    This can be done. Make the configuration transparent to the IP phone users, so they will just dial the numbers as long distance numbers. Configure redundancy via dial-peers. Two dial-peers will do the trick. The first dial-peer will send the call to the remote gateway for it to be routed out as a local call. If the number dialed is dialed as 91+10 digits, strip the 91 (and the area code if necessary) before sending the call to the remote gateway which should already be configured to route the call out as a local call. The second dial-peer is a failover dial-peer, to be used incase the WAN is down or the remote gateway is not available to route out the call. In this case, the call is sent out the local gateway as a normal long distance call.
    The configuration could look somewhat like this:
    voice translation-rule 4
    rule 1 /^91212/ /212/
    voice translation-profile LCR
    translate called 4
    dial-peer voice 1 voip
    description ** LCR Via CME_Site_B **
    destination-pattern 91212[2-9]......
    translation-profile outgoing LCR
    preference 1
    dial-peer voice 2 pots
    description ** LD to CME_Site_B Via Local PSTN**
    destination-pattern 91212[2-9]......
    preference 2
    forward-digits 11
    port x/x
    Hope this helps.
    Michael.

  • [request] BongoSurfer least cost router

    Hi!
    Would be nice if somebody could create a PKGBUILD since I think this is an perfect application for all those who don't have a DSL Flatrate or simply just need a dial in connection to the internet.
    Check it out: http://www.bongosoft.de/
    Thanks!

    Hm, I've been doing some more work on AWeather lately... I don't think there are any Arch packages for it yet, and I don't use Arch myself, but if someone wants to volunteer to make one I might be able to help/answer questions.
    The old wiki page was linked from above, the new development page is here: http://lug.rose-hulman.edu/code/projects/aweather
    There's also IDV, which has quite a bit of support, but is a little tricky to get started with, and requires Java: http://www.unidata.ucar.edu/software/idv/

  • Need SQL 2008 R2 Evaluation Version

    I know that Microsoft has released SQL 2012 now, but my company wants to move some of old servers to SQL 2008 R2 now. In this regard we are looking for SQL 2008 R2 Evaluation now, could you help where to get the same??
    I tried many links but all of them direct to SQL 2012 download :(
    Also, if my company decides to purchase SQL 2008 R2 now, will Microsoft will priovide us the license??
    Any help on this is appreciated...
    San...
    San...

    Yes,
    I'm pretty sure that's what happened recently for one of my clients. They wanted a production server for the BI solution I developed for them on SQL Server 2008 R2. The decision was taken to not invest further resources in migrating this solution to SQL
    2012 at this stage. (This is a complex multi-terra byte solution) So they purchased a SQL Server 2012 license then downgraded to SQL Server 2008 R2.
    The network infrastructure team of your company will have a contact with a Microsoft licensing expert. This licensing expert should be able to tell you how to get the media / download for SQL Server 2008 R2 via this licensing route.
    I also recommend trying migrating your databases to SQL Server 2012 using a desktop using a developer's license. You may then be able to communicate to your company a cost benefit analysis of upgrading to SQL Server 2012. A developer license costs around
    50 USD; -
    http://www.amazon.com/SQL-Server-Developer-Edition-2012/dp/B007RFXQAM/ref=sr_1_1?ie=UTF8&qid=1368170189&sr=8-1&keywords=sql+server+2012+developer+edition
    As long as your don't use the above for your production server installation you are OK.
    Kind Regards,
    Kieran.
    If you have found any of my posts helpful then please vote them as helpful. Kieran Patrick Wood MCTS BI, PGD SoftDev (Open), MBCS http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood

  • How to overwrite existing DB's in SQL 2008?

    I use Maintenance Plan of SQL 2008 Server for Backup some DB's. As a result i need to keep, only one set of Backup Up's and not more. So actually i can use Maintenance Plan Clean Up wizard, but i need something like Overwrite. That mean
    i don't want do delete DB's after i finish Backup UP, but i want to overwrite existing backups?
    Thanks.

    Maintenance Plans are great as a base starting point for, "maintenance".  They provide quick, easy setup and just get something in when in some cases, a fulltime DBA is not around.
    Uri's recommendation on avoiding Maintenance Plans probably should have come with an explanation with such a strong statement.  I'm guessing with the following, there will be an agreement...
    Maintenance Plans, like I said, offer quick development of maintenance tasks.  However, you can find yourself being restricted if you only use them for all of your maintenance tasks.  This proves to make it difficult when you start getting further
    into truly managing your database servers as they grow.  Now, WITH INIT is an option form memory in the BACKUP Task but given the task, the conversion to calling the BACKUP DATABASE [db] TO DISK=N'filepath' WITH INT is a pretty quick change (at this point). 
    It will allow you to better understand the tasks you are refining as well.  But, you do have the ability to leave it there.
    I'm also not fully agreeing that WITH INIT is your best option if you want to retain backup history.  If you do not, then by all means, INIT it all day.  You may want to consider bringing this into SSIS or even a more structure TSQL statement to
    dynamically create backup files by timestamps so you can at least retain some historic recovery abilities.  Possible this is something of a secondary backup so that is based on my assumptions
    Ted Krueger
    Blog on lessthandot.com @onpnt on twitter

  • PDF Corrupt file after being using in sql 2008

    I have SQL 2008 database a database with PDFs stored on it. The app reads the PDF from the database and stores it on the machine as a temp file, then launches Acrobat Reader.
    At that point, I receive a message that the file format is invalid. I receive the same message when I have the app save the file as .pdf. I'm reading the PDF from the database using the Filestream object.
    Is there a way to prevent this?

    Look at following source of experienced or novice users. They can give you clear and effective answers for handling your situation:-
    http://www.filerepairforum.com/forum/adobe/adobe-aa/pdf/600-pdf-document-error
    Alternative paid solution:
    Third party software, costs money, but gives you result
    PDF Repair Toolbox
    http://www.adobereaderrepair.acrobatrepairtoolbox.com/
    Online repair service:
    Visit:-
    https://onlinefilerepair.com/
    Push to Start Upload and Repair
    Choose your corrupted .pdf from PC
    Push Upload File for recovery
    And get your file back with restored information…

  • Cannot see new SQL 2008 R2 Express instance on Small Business Server 2011!

    Hi,
    As it is stated on the subject line, I'm having a problem after I did a new install of SQL 2008 R2 Express and put a new instance on SBS 2011.
    I'm developing a new program using SQL 2008 in C# and VB.Net. I have SQL 2008 R2 Express installed on my computer called "MSQL8R2EDATA" on my PC. Now I need to deploy it on SBS 2011 so I can do some testing on other workstations.
    I'm currently running Windows 7, 64 bit, and it's named STEVE-PC. The SBS 2011 is named SERVER1, and it's 64 bit as well.
    After installation on SERVER1 (SBS 2011), I then fired up SQL Server Configuration Manager and enabled Named Pipes, TCP/IP, and VIA.
    After I've completed the SQL Configuration on SERVER1, I went back on my PC (STEVE-PC) and I tried to use Management Studio to connect to the  new instance MSQL8R2EDATA on SBS 2011, only problem is, I only see the computer name, not the new instance
    I've installed.
    Back on SBS 2011 (SERVER1), I've verified that all the protocols are enabled, and the SQL Server Browser is automatically loaded and currently running, as well the MSQL8R2EDATA instance is automatically loaded and running, yet I still cannot see
    it from my PC (STEVE-PC). I even switched from dynamic ports to a static port of 64719 (that was what the MSQL8R2EDATA was listening on that port when it was dynamic), and then added new rules to the Windows Firewall for program of the SQLSERVR.EXE, and
    for UDP and TCP for port 64719 to "Allow All Connections" for Domain, Private, and Public; yet I still cannot connect SERVER1\MSQL8R2EDATA. I even disabled the firewall and then trying to connect once again to SBS 2001 and it still fails.
    In case you're wondering, I left it on port 64719 since there are other active SQL Servers on SBS 2011 (SharePoint, SBSMonitoring, and ACT7).
    Interestingly, when I run Management Studio on SBS 2011, I can see STEVE-PC\MSQL8R2EDATA and I'm able to log in and connect to it.
    So what's going on here?!? Why am I able to connect to STEVE-PC which is Windows 7 64 from SBS 2011 (SERVER1), but I cannot connect from my computer to that instance on SBS 2011??
    I really could use some big time help on this.
    EDIT: Sorry for the confusion, but on the Windows Firewall (WF.msc), I did add new rules for incoming connections on:
    Program incoming connections to SQLSERVR.EXE
    TCP Port 64719
    UDP Port 64719
    EDIT: To further assist, I have Management Studio installed on the SBS 2011, and I can locally log in and connect to the MSQL8R2DATA on SERVER1 with success. I even tried tcp:SERVER1\MSQL8R2DATA and again it is successful log-in and connection.
    Thanks in advance!
    Steve

    Hi,
    Thanks for the response, but I have a question:
    Installing SQL Express or SQL Server is not recommended on SBS
    2011 because it is a DC, however technically it will work.
    I'm a newbie when it comes to SBS 2011 and I'm taking a crash course on the subject. Can you explain to me what you mean by "DC"? Also, why
    isn't recommended to install a new instance on SBS 2011?
    As I also stated, I've added "New Rules" to the Windows Firewall to allow incoming connections on port 64719 for both TCP and UDP, and I also allowed incoming connections for SQLSERVR.EXE but no joy to connect to the SERVER1\MSQL8R2EDATA.
    And yes, I can log-in and connect locally on SERVER1 using Management Studio with success. I even used tcp:SERVER1\MSQL8R2EDATA with the same success. It's my workstation STEVE-PC that fails. If that fails, then the rest of the workstations are going to fail.
    Are you suggesting that I put the SQL Server 2008 Express on another workstation and just allow to to be
    accessed that way?

  • Issue With Report Builder After Installing SP3 for SQL 2008 R2

    Hello.  We are experiencing an issue with Report Builder 3.0 since installing SP3 for SQL 2008 R2 over the weekend.  You can no longer launch Report Builder from the Reporting Services URL (http://dicomweb/ReportServer/ReportBuilder/ReportBuilder_3_0_0_0.application
          Server  : Microsoft-HTTPAPI/2.0
          X-AspNet-Version: 2.0.50727
     Application url   :
    http://dicomweb/ReportServer/ReportBuilder/RptBuilder_3/MSReportBuilder.exe.manifest
          Server  : Microsoft-HTTPAPI/2.0
          X-AspNet-Version: 2.0.50727
    IDENTITIES
     Deployment Identity  : ReportBuilder_3_0_0_0.application, Version=10.50.6000.34, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=x86
     Application Identity  : MSReportBuilder.exe, Version=10.50.6000.34, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=x86, type=win32
    APPLICATION SUMMARY
     * Online only application.
     * Trust url parameter is set.
    ERROR SUMMARY
     Below is a summary of the errors, details of these errors are listed later in the log.
     * Activation of
    http://dicomweb/ReportServer/ReportBuilder/ReportBuilder_3_0_0_0.application resulted in exception. Following failure messages were detected:
      + File, Microsoft.ReportingServices.ComponentLibrary.Controls.dll, has a different computed hash than specified in manifest.
    COMPONENT STORE TRANSACTION FAILURE SUMMARY
     No transaction error was detected.
    WARNINGS
     There were no warnings during this operation.
    OPERATION PROGRESS STATUS
     * [10/15/2014 9:35:56 AM] : Activation of
    http://dicomweb/ReportServer/ReportBuilder/ReportBuilder_3_0_0_0.application has started.
     * [10/15/2014 9:36:29 AM] : Processing of deployment manifest has successfully completed.
     * [10/15/2014 9:36:29 AM] : Installation of the application has started.
     * [10/15/2014 9:36:31 AM] : Processing of application manifest has successfully completed.
     * [10/15/2014 9:36:35 AM] : Found compatible runtime version 2.0.50727.
     * [10/15/2014 9:36:35 AM] : Detecting dependent assembly Sentinel.v3.5Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=msil using Sentinel.v3.5Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,
    processorArchitecture=msil.
     * [10/15/2014 9:36:35 AM] : Detecting dependent assembly System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil using System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089,
    processorArchitecture=msil.
     * [10/15/2014 9:36:35 AM] : Request of trust and detection of platform is complete.
    ERROR DETAILS
     Following errors were detected during this operation.
     * [10/15/2014 9:36:43 AM] System.Deployment.Application.InvalidDeploymentException (HashValidation)
      - File, Microsoft.ReportingServices.ComponentLibrary.Controls.dll, has a different computed hash than specified in manifest.
      - Source: System.Deployment
      - Stack trace:
       at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)
       at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection)
       at System.Deployment.Application.ComponentVerifier.VerifyComponents()
       at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification
    notification, DownloadOptions options)
       at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
       at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
       at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
       at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    COMPONENT STORE TRANSACTION DETAILS
     No transaction information is available.

    Hi DMcGarveyt,
    This is an known issue in SSRS 2008 R2 SP3. For this issue, Microsoft has published an article addressing this issue. It is not planning to release a fix for this defect. But there's workarounds for this issue. Please refer to the link below:
    Report Builder of SQL Server 2008 R2 Service Pack 3 does not launch.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to transfer the tables from one file group to another file group in SQL 2008.?

    Hello all,
    I have few issues regarding the transfer of the tables from one file group to another file group  in SQL 2008 and also How can we  backup
    and restore the particular database based on file group level.
    Let’s say I have a tables stored within the different FG. such as
    Tables                                                    
      File group
    Dimension tables                                              
                                                                     Primary
    Fact tables                                               
                                                                              FG1
               FG2…
    zzz_tables                                               
                                                                              DEFAULT_FG    
    dim.table1                                                                                                                          DEFAULT_FG
    dim.table2                                                                                                                          DEFAULT_FG
    Here all I want to transfer the dim.table1 ,dim.table2  from  DEFAULT_FG to the Primary File
    group .So is there simple methods for transfer the dim.table1,2  from one FG to another .I have tried somewhat but I couldn’t get the exact way .So if someone have better idea please share your knowledge that would be really appreciated.
    Secondly after moving those dim.table1 ,dim.table2 from DEFAULT_FG to Primary ,All I want to backup and restore the database only containing  the Primary and FG1,FG2… not
    a DEFAULT_FG.Is it possible or not.?
    Hope to hear from the one who knows better approach for this kind of task .Your simple help will be much appreciated.
    Regards,
    Anil Maharjan

    Well after all my full day research on this topic had paid off, I finally got the solution and am so happy to research on these things. It makes
    us feel really happy after all our research and hard work doesn't goes as waste.
    Finally I got what I am looking for and want to make sure that I am able to transfer the tables from DEFAULT_FG to another FG without tables
    having clustered index on that tables .
    With the help of the link below I finally got my solution where Roberto’s coded store procedure simply works for this.
    Really thanks to him for his great post and thanks to all for your response and your valuable time.
    http://gallery.technet.microsoft.com/scriptcenter/c1da9334-2885-468c-a374-775da60f256f
    Regards,
    Anil Maharjan

  • Data Services 4.0 installation with MS SQL 2008

    hey guys,
    I am trying to install data services 4.0 on a windows server with MS SQL database as the repository database. So, my plan was to install MS SQL 2008 first, then IPS, then data services. But i am facing a problem in installation of MS SQL itself. I installed MS SQL with following features - database engine, client tools and management tools. The installation process was smooth and the sql server services (server and agent) both startup just fine. I installed a custom instance for the same.
    But problem is when I open the management studio and try to connect to the database engine, it does not connect, I choose database engine as the server type, local hostname as the server name and windows authentication as the authentican type but it fails with the following error:
    TITLE: Connect to Server
    Cannot connect to <myservername>.
    ADDITIONAL INFORMATION:
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&EvtSrc=MSSQLServer&EvtID=53&LinkId=20476
    BUTTONS:
    OK
    Any clues as to what is causing this ??? Or is it normal at this stage of installation ??  I am confused. I have already tried to reinstall the server, no good, nothing in the event logs either.
    Thanks,
    RS

    resolved via following:
    In the TCP/IP Properties dialog box, on the IP Addresses tab, several IP addresses appear in the format IP1, IP2, up to IPAll. One of these is for the IP address of the loopback adapter, 127.0.0.1. Additional IP addresses appear for each IP Address on the computer. Right-click each address, and then click Properties to identify the IP address that you want to configure.
    If the TCP Dynamic Ports dialog box contains 0, indicating the Database Engine is listening on dynamic ports, delete the 0.u201D
    Once I deleted those zeros and put in 1433 for TCP ports on each IP address, voila!

  • Calling a stored procedure on SQL 2008 server

    This might be easy one, but I tried different things just cannot get it to work.
    I am trying to call a stored procedure in SQL 2008 R2 server using Type 4 driver (sqljdbc4.jar) with JR.
    The stored procedure basically has one input and two outputs
    ALTER PROCEDURE [dbo].[usp_Example_Master]
    @XMLResponse as varchar(max),
    @ERROR_NUMBER as int OUTPUT,
    @ERROR_MESSAGE as varchar(300) OUTPUT
    as
    My program.
    Connection connection =null
    CallableStatement cs =null;
    connection = DriverManager.getConnection(url, username, password);
    cs = connection.prepareCall("{call dbo.usp_Example_Master(?,?,?)}");
    cs.setString(1,requestStr);
    cs.registerOutParameter(2, Types.INTEGER);
    cs.registerOutParameter(3, Types.VARCHAR);
    cs.execute();
    ============
    Error: The output parameter 1 was not registered for output.
    But if I added cs.registerOutParameter(1, Types.VARCHAR);
    Error: The formal parameter "@XMLResponse" was not declared as an OUTPUT parameter, but the actual parameter passed in requested output
    ==========
    Appreciate any help !

    Ok. I have an alternative to get it to work now.
    Instead of using index number, I am using the parameter name now. It works as expected and more intuitive any way.
    Ex.
    cs.setString("XMLResponse",req);
    cs.registerOutParameter("ERROR_NUMER",Type.INTEGER);
    Edited by: 903857 on Dec 21, 2011 2:45 PM

  • SharePoint 2010 + SQL 2008 + DPM 2012 Backup Failures

    I have a single SharePoint 2010 WFE and a SQL 2008 server backend. Since configuring DPM to run the SharePoint backup through the WFE, I have had no success with backups.
    DPM Reports:
    The VSS application writer or the VSS provider is in a bad state. Either it was already in a bad state or it entered a bad state during the current operation. (ID 30111 Details: VssError: The writer experienced a non-transient error. If the backup process
    is retried, the error is likely to reoccur. (0x800423F4))
    Event Log on SQL Server Reports:
    Log Name:      Application
    Source:        SQLWRITER
    Date:          4/24/2014 4:44:17 PM
    Event ID:      24583
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      srv-sql-01
    Description:
    Sqllib error: OLEDB Error encountered calling ICommandText::Execute. hr = 0x80040e14. SQLSTATE: 42000, Native Error: 319
    Error state: 1, Severity: 15
    Source: Microsoft SQL Server Native Client 10.0
    Error message: Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
    SQLSTATE: 42000, Native Error: 103
    Error state: 3, Severity: 15
    Source: Microsoft SQL Server Native Client 10.0
    Error message: The file that starts with '\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy334\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\WSS_Content30_1.mdf                                                                                                                                                                       
    ' is too long. Maximum length is 259.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="SQLWRITER" />
        <EventID Qualifiers="0">24583</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-24T21:44:17.000000000Z" />
        <EventRecordID>293470</EventRecordID>
        <Channel>Application</Channel>
        <Computer>srv-sql-01</Computer>
        <Security />
      </System>
      <EventData>
        <Data>ICommandText::Execute</Data>
        <Data>0x80040e14</Data>
        <Data>SQLSTATE: 42000, Native Error: 319
    Error state: 1, Severity: 15
    Source: Microsoft SQL Server Native Client 10.0
    Error message: Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
    SQLSTATE: 42000, Native Error: 103
    Error state: 3, Severity: 15
    Source: Microsoft SQL Server Native Client 10.0
    Error message: The file that starts with '\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy334\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\WSS_Content30_1.mdf                                                                                                                                                                       
    ' is too long. Maximum length is 259.
    </Data>
        <Binary>53514C434F4E4E43313236330000000053514C434F4E4E433132323800000000</Binary>
      </EventData>
    </Event>
    Followed by:
    Log Name:      Application
    Source:        VSS
    Date:          4/24/2014 4:44:17 PM
    Event ID:      8229
    Task Category: None
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      srv-sql-01
    Description:
    A VSS writer has rejected an event with error 0x800423f4, The writer experienced a non-transient error.  If the backup process is retried,
    the error is likely to reoccur.
    . Changes that the writer made to the writer components while handling the event will not be available to the requester. Check the event log for related events from the application hosting the VSS writer.
    Operation:
       PostSnapshot Event
    Context:
       Execution Context: Writer
       Writer Class Id: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}
       Writer Name: SqlServerWriter
       Writer Instance Name: SQL Server 2008 R2:SQLWriter
       Writer Instance ID: {18aa641d-ffcd-44be-84eb-77867e909c51}
       Command Line: "C:\Program Files\Microsoft SQL Server\90\Shared\sqlwriter.exe"
       Process ID: 6036
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="VSS" />
        <EventID Qualifiers="0">8229</EventID>
        <Level>3</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-24T21:44:17.000000000Z" />
        <EventRecordID>293471</EventRecordID>
        <Channel>Application</Channel>
        <Computer>srv-sql-01</Computer>
        <Security />
      </System>
      <EventData>
        <Data>0x800423f4, The writer experienced a non-transient error.  If the backup process is retried,
    the error is likely to reoccur.
    </Data>
        <Data>
    Operation:
       PostSnapshot Event
    Context:
       Execution Context: Writer
       Writer Class Id: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}
       Writer Name: SqlServerWriter
       Writer Instance Name: SQL Server 2008 R2:SQLWriter
       Writer Instance ID: {18aa641d-ffcd-44be-84eb-77867e909c51}
       Command Line: "C:\Program Files\Microsoft SQL Server\90\Shared\sqlwriter.exe"
       Process ID: 6036</Data>
        <Binary>2D20436F64653A20575254575254494330303030353239392D2043616C6C3A20575254575254494330303030333336352D205049443A202030303030363033362D205449443A202030303030323630342D20434D443A202022433A5C50726F6772616D2046696C65735C4D6963726F736F66742053514C205365727665725C39305C5368617265645C73716C7772697465722E65786522202D20557365723A204E616D653A204E5420415554484F524954595C53595354454D2C205349443A532D312D352D313820</Binary>
      </EventData>
    </Event>
    When I run vssadmin list writers after the error, the "SqlServerWriter" show a State of [11]. I can restart the service and the error clears up showing stable, but the next time I run the backup it fails again.
    From the error, it almost sounds like the path is too long. This doesn't totally make sense to me considering the database was successfully backed up before I tried to back it up as a SharePoint database.
    Any suggestions would be appreciated.

    Got the issue solved.
    DPM has issues with DNS Aliases for SQL.
    To get this issue sorted out i used the old HOSTS file to point the right name to the right SQL server.

  • Error restoring SQL 2008 R2 DB into SQL 2012: BACKUP LOG cannot be performed because there is no current database backup.

    I have a SQL 2008 R2 database that I am trying to move to 2012.  Made a full backup of the database in 2008 R2.  Recovery model is Simple, compatibility level is 2008  Went to 2012, created a dummy database, did Tasks--> Restore -->
    Database , located the backup file, selected it, changed the file locations and tried to restore the backup (with overwrite option), got the following error:
    BACKUP LOG cannot be performed because there is no current database backup.
    This is a simple task that has always worked in 2008 R2.  Does anyone know what the problem is and a possible solution?
    Thanks

    Hi,
    This error occurs when the database recovery model has been changed to Simple and/or the recovery model has been changed back to Full but a full backup has not been performed since the change.
      If a full backup has been performed, the following conditions will require that another full backup be taken:
     · The recovery model had been changed without taking a full backup
     · A SQL maintenance plan task had changed the recovery model (reindexing can cause this)
     · A backup specifying TRUNCATE_ONLY had been run on the database
     · The database was detached from another server and attached to the current server
    Additionally, if we take full database backup after the Database is set to readonly, Then transaction log backup we will end up with this error. This is expected behavior. I have list an example within the link below.
    Please check above conditions and fix your issue, if you have any concern, please let me know.
    Example:
    BACKUP LOG cannot be performed because there is no current database backup.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b5c36e60-836f-4c9e-b9d7-3fb3f3ee4d37/backup-log-cannot-be-performed-because-there-is-no-current-database-backup
    Thanks
    Candy Zhou

  • Windows 2003 server and SQL 2008

    Hi
    Does SAP Business one support windows 2008 and sql 2008 platforms?
    When i checked the partner portal it says that these platforms are not supported.Is there any update?
    Regards
    Louis

    Hello Louis,
    The only way to determine this is via the supported platforms page in the portal. This is the most up to date, and will include information for the future when this data is available. So for not I would only plan with what information is available.
    Regards,
    Paul Finneran
    SAP Business One Forums Team

Maybe you are looking for

  • ID 5.5 Interact. PDF, cannot remove white background for Multi-States and buttons.

    Hi I am working on an Interactive PDF Portfolio document. The problem I have is with Multi-State object feature with several buttons going to states that need to be exported as a SWF and imported back into InDesign 5.5. See, the background of my enti

  • How to enable the comment option in the pdf file

    Hi, How to enable the comment option in the pdf file using acrobat sdk[IAC, javascript], Give me idea on this to automate. If not leave it. Regards, jkrishnanvenkat

  • In car charging

    This is a bit convoluted so please be patient....first time user My charger at home is the magnetic type but I want to be able to have my laptop in the car - to get internet access etc. when away from home. I can see how a usb car charger would work

  • Directory manager resource question

    Folks, On page 273 on the Iplanet DS Admin Guide it says that the directory manager receives unlimited resources by default. Using Dirsync, I get limits on look throughs and size limits. Also, from the console, the DM can only display 5000 entries (i

  • Issue Xcelsius installation Ehp1

    Hi guys, We have just installed BO XI 3.1 enterprise including Xcelsius. We are in BW 7.0 SP 15 When we try to launch a BW connection from Xcelsius, we encountered an issue : error message like following appears "You need to be in version 7.02 or hig