I created a .db file using Sybase SQL Anywhere, with loads of tables and information in it. Now, I dont have access to this Software anymore. So I got RazorSQL, which states on its homepage it can query SQL Anywhere. But how can I connect to my .db file using RazorSQL? Because I only found that it can connect to online databases.
Looks like RazorSQL is an application that can connect to various types of databases. You still need a SQL Anywhere server running so that RazorSQL has something to connect to. If you can't run a SQL Anywhere server, you're out of luck.
Related
I am a beginner in Microsoft Access and one of my friend gave me a copy of his SQL Server file and something with .BAK extension which I believe is the database as it is almost 300MB.
When I try to run the SQL Server file I get cannot connect to backend database error. Searching on the internet I found that I can prevent this by holding shift while opening the database.
Even though this does open the Access file, where I can see all the table,queries, forms, reports and macros icons and names. I cannot open any of them. When I press on one of the table names for example I get
Connection Failed SQL server does not exist or access denied' error.
How do I view the tables?
Your MS Access file is linked to a SQL Server. You basically need to
Install SQL Server Express (it's free)
https://www.microsoft.com/en-au/sql-server/sql-server-editions-express
Restore the .BAK file into SQL Server Express How to import a bak file into SQL Server Express
Relink all of the MS Access linked tables to your installed SQL Server
How does one change the connection string of linked tables in MS Access
This may seem complicated but it is a great opportunity to learn about databases.
Seems your friend is not very helpful.
I have access to a .db file that I would like to query somehow to pull data from it for my other database. So far I have been unable to do this through an ODBC or SQL server directly. I would think that this is possible but I can't seem to find any ideas how.
.db files are standalone files, so cannot be Opened through SSMS.
Use SQLITE DB BROWSER to work on those files. Thanks :)
.db files are standalone files, which means they don't need server to work, which also means you can't open it with SQL Server 2008.
More more info check THIS LINK
If this is a one time load, the easiest option would be using the SQL Server Import and Export wizard from SSMS. You'll need a Sqlite ODBC driver. The one here should work.
Another option is to create a linked server to SQLite database from SQL Server. See this article for instructions.
Here are a couple of StackOverflow posts on loading data from Sqlite to SQL Server which might be helpful.
Bulk load tables in SQLite db files into SQL Server
Import data from SQLite to SQL Server with SqlBulkCopy class
I want to create local a database in SQL Server 2008 R2 using AS/400 schema...how can i do that..i don't know what is AS/400 schema in SQL...i tried to search on internet but not able to find any helpful link.
Please help me.
You would need to extract the file structures from the AS/400 and manually create, I know of no automated method, the corresponding SQL tables.
I currently have two servers. One is a server with .dbf files that get updated very frequently, and the other is a server with SQL Server workgroup edition on it.
Problem: I need to update the SQL Server tables from these remote .dbf files, how is it done? I need these files to be pulled automatically from the server every X amount of hours.
Research thus far:
I believe I understand how to update tables having the .dbf file on the same server as the SQL Server database, you would use the DTS management studio provided with SQL Server. I don't believe this solution would work trying to pull these .dbf files remotely. I have looked into a Linked Server, but don't understand what that really is. These .dbf files come from a visual foxpro server. As far as i know visual foxpro has no interface like SQL? If anyone has any advice in order to point me into the right direction, this would be much appreciated. I can usually find the answers, but feel pretty helpless on this one... Thanks in advance for any effort put into this problem.
A linked server is basically just a pointer that lets the code within your database interact with external data sources as if they were also within your database/instance. There are some examples here for creating linked servers to FoxPro DBFs:
http://fox.wikis.com/wc.dll?Wiki~VisualFoxProDataFromSQLServer
So for example if you had a linked server to a FoxPro database called MyFoxProDB you could run a query within SQL Server like this:
UPDATE t
SET t.foo = x.bar
FROM dbo.LocalTable AS t
INNER JOIN MyFoxProDB...TableName AS x
ON t.key = x.key;
You could also consider using OPENROWSET as described in this question:
Import DBF files into Sql Server
(But personally I think the linked server will be a lot more flexible.)
Similar to this question only the other way of flow.
Insert Picture into SQL Server 2005 Image Field using only SQL
I need to be able to save a image field out into the file system and be able to name the file with only using SQL. I don't want to use TEXTCOPY either because I need to use the connection to the database that is running the query itself.
I'd like this to work in SQL 2005 to support older database clients but if it's available in only 2008 that's fine.
Any ideas?
With SQL 2k8 there is the new FILESTREAM type that covers such cases. Filestreams can be opened via the Win32 file access handle like any other file, but hey are integrated into the database from transaction and backup/restore point of view.
I had a similar issue in SQL 2k5 and my solution was to use a CLR stored procedure with EXTERNAL_ACCESS that was writing into the file system using C# file operations.
I don't believe there is a way to save out using only sql, but there is a command-line utility, bcp.