易截截图软件、单文件、免安装、纯绿色、仅160KB

SQL Server bcp

D:\projects\openi\misc\xxxx_data_20090828>bcp [xxxxolap].[dbo].[wdb_cxbz]  in wdb_xxx.txt      -c -T
SQLState = 37000, NativeError = 4060
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Cannot open database "xxxolap" requested by the login. The login failed.
SQLState = 28000, NativeError = 18456
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'xxxx\robin'.
解决办法
- MS SQLSERVER MANAGEMENT STUDIO -> SECURITY
- new LOGIN,加入 'xxxx\robin'
- ROLES&MAPPING


相关文档:

将一个SQL数据库中的表导入到别一个数据库中

导入的详细流程
1、新建一个数据库
2、在新的数据库上点右键-》“所有任务”-》“导入数据库”,点下一步
3、什么都不要改,在数据库中选择那个旧的数据库,点下一步
4、在这个界面的数据库中选择你新建的数据库,点下一步
5、选择“在SQL SERVER数据库之间复制对象和数据”,点下一步 ......

SQL 日期函数集日期处理方法范例

--都写了 参考下吧
通常,你需要获得当前日期和计算一些其他的日期,例如,你的程序可能需要判断一个月的第一天或者最后一天。你们大部分人大概都知道怎样把日期进行分割(年、月、日等),然后仅仅用分割出来的年、月、日等放在几个函数中计算出自己所需要的日期!在这篇文章里,我将告诉你如何使用DATEADD和DATEDIFF函数 ......

SQL*Plus FAQ

 What is SQL*Plus and where does it come from?
SQL*Plus is a command line SQL and PL/SQL language interface and reporting tool that ships with the Oracle Database Client and Server software. It can be used interactively or driven from scripts. SQL*Plus is frequently used by DBAs and Developers ......

SQL语句优化实践之一SQL_TRACE

SQL语句优化实践之一SQL_TRACE
 
环境:在PL/sql上调试数据
Pl/sql developer工具连接实例后即作为一个用户进程占用一个session;
 
select * from  v$session t  where t.PROGRAM='plsqldev.exe' and  t.USERNAME='DZJC'
查询结果显示了几个关键的字段
SADDR   RAW(4)  S ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号