简体   繁体   English

如何在SQL Server 2008中使用.db文件?

[英]How can I make use of a .db file in SQL server 2008?

I have access to a .db file that I would like to query somehow to pull data from it for my other database. 我可以访问.db文件,我想以某种方式查询该文件以从其他数据库中提取数据。 So far I have been unable to do this through an ODBC or SQL server directly. 到目前为止,我无法直接通过ODBC或SQL服务器执行此操作。 I would think that this is possible but I can't seem to find any ideas how. 我认为这是可能的,但我似乎找不到任何想法。

.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. .db文件是独立文件,这意味着它们不需要服务器即可工作,这也意味着您无法使用SQL Server 2008打开它。
More more info check THIS LINK 更多信息,请检查此链接

.db files are standalone files, so cannot be Opened through SSMS. .db文件是独立文件,因此无法通过SSMS打开。 Use SQLITE DB BROWSER to work on those files. 使用SQLITE DB BROWSER处理这些文件。 Thanks :) 谢谢 :)

If this is a one time load, the easiest option would be using the SQL Server Import and Export wizard from SSMS. 如果这是一次加载,则最简单的选择是使用来自SSMS的SQL Server导入和导出向导。 You'll need a Sqlite ODBC driver. 您将需要一个Sqlite ODBC驱动程序。 The one here should work. 这里的一个应该工作。

Another option is to create a linked server to SQLite database from SQL Server. 另一个选择是从SQL Server创建到SQLite数据库的链接服务器。 See this article for instructions. 有关说明,请参见本文

Here are a couple of StackOverflow posts on loading data from Sqlite to SQL Server which might be helpful. 这是一些关于将数据从Sqlite加载到SQL Server的StackOverflow帖子,可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在SQL Server 2008中删除mdf和ldf文件? - How Can I Remove mdf and ldf File In SQL Server 2008? 如何使SQL Server 2008过程从SQL Server Compact获取数据? - How can I make an SQL Server 2008 procedure get data from SQL Server Compact? SQL 2008:如何查看数据库中的Temptable? - SQL 2008 : How can i see Temptable in DB? 如何在Microsoft SQL Server 2008 Management Studio中仅将数据库中的索引生成到sql文件中? - How can I generate only indexes from a database into a sql file in Microsoft SQL Server 2008 Management Studio? 我在哪里可以获得SQL Server 2008的英文同义词库文件? - Where can I get an English Thesaurus file for SQL Server 2008? 如何在SQL Server 2008中的多个表中使用单个存储过程进行数据插入? - How I can use a single stored procedure for data insertion in multiple tables in SQL Server 2008? 如何在LI Server中使用LIKE运算符进行匹配? - How can I use the LIKE operator to make this match in SQL Server? 如何正确配置SQL Server Management Studio 2008以与SQL Server 2005 DB一起使用? - How do I properly configure SQL Server Management Studio 2008 to work with SQL Server 2005 DB? 如何在sql server 2008中通过XP_CMDSHELL访问网络上的文件/文件夹? - how can i access a file/folder over network through XP_CMDSHELL in sql server 2008? 如何在 SQL Server 2008 中使用我的 ip - How do I use my ip in SQL Server 2008
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM